【发布时间】:2011-09-11 17:17:04
【问题描述】:
我正在尝试构建一个多视图应用程序,即基于一些手势,显示、删除新视图等。
我找到了 3 种方法 -
[self.view insertSubview:newViewController.view atIndex:3];- 使用
UINavigationController - 终于使用modalViewController -
[self presentModalViewController:newViewController animated:YES];
首先,在第二种方法中,我可以在没有UINavigationTabBar 的情况下使用这个控制器吗?我有一组自定义的 UIView 对象,我想从 Screen 推送和弹出这些对象。我不希望顶部(或底部)丑陋的 Apple 导航栏。我将根据应该出现的[self.navigationController popViewControllerAnimated] 提供自定义按钮。这可能吗?
另外,这些技术中哪一种最好?在使用&代码维护、内存使用等方面。
【问题讨论】:
标签: objective-c ios uiview uinavigationcontroller modalviewcontroller