I have a design where I have a main view controller, with three subviews contained within. How can I add a UINavigationController to one of the subviews to manage the view stack for that subview only?
Since iOS 5 you can create custom container view controllers. I recommend creating a container that holds your 3 views (each of them being view controller objects). And since UINavigationController
is a UIViewController
subclass, you should be able to add it to your container.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.