开发者

PresentModalViewController on IPhone applications

开发者 https://www.devze.com 2023-02-15 22:17 出处:网络
i have an application with many views ( about 20 view ) these views are开发者_如何学Python populated using (PresendModalViewController), and populated in a number of times through a loop ( let\'s say

i have an application with many views ( about 20 view ) these views are开发者_如何学Python populated using (PresendModalViewController), and populated in a number of times through a loop ( let's say that 1,2,3,4,5...20 then 1,2,3,4....20 an so for) my question is , shall i dismiss the previous view each time i populated the next one?


why not see this

for(int i=1;i<=20;i++)
{
   if(i>1)
    [self.navigationController dismissModelViewControllerAnimated:YES];
   [self.navigationController presentViewController:youobj animated:YES];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消