在多个UIViewControllers一起工作的应用程序中,需要有关UIViewController的帮助
firstViewController
添加到根。直到现在,它的罚款现在我想去secondViewController
我不想使用UINavigationController
或UITabBarController
。我已阅读View Controller Programming Guide,但未指定UINavigationController, UITabBarController and story board
。
当用户想从secondViewController
移动到firstViewController
如何secondViewController
将被销毁?
Apple Doc还没有指定如何释放或销毁UIViewController?它只能告诉UIViewController
内的生命周期。
@MartinR我想邀请您回答这个问题。 – 2013-05-02 08:42:57
如上所述替换窗口的根视图控制器。在这里:http://stackoverflow.com/questions/16334041/re-assigning-rootviewcontroller-after-successful-login可能是一个选项。 – 2013-05-02 09:14:21
你应该使用UIViewController类的iOS 6的功能“childViewControllers”,这样说的:实现一个容器视图控制器@ http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference。 html – 2013-05-02 09:27:52