【问题标题】:PresentModalViewController on IPhone applicationsiPhone 应用程序上的 PresentModalViewController
【发布时间】:2026-01-07 16:25:01
【问题描述】:

我有一个有很多视图的应用程序(大约 20 个视图) 这些视图使用 (PresendModalViewController) 填充,并通过循环多次填充(假设 1,2,3,4,5...20 然后 1,2,3,4....20 和因此对于) 我的问题是,每次我填充下一个视图时,我是否应该关闭前一个视图?

【问题讨论】:

    标签: iphone presentmodalviewcontroller


    【解决方案1】:

    为什么看不到这个

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

    【讨论】: