I have a UINavagationController
(NC) that displays numerous UIViewController
(VC) Views for an array of "Items", and I have a UINavigationController
that displays numerous UIViewController
Views for an array of "owners". Users can scroll through the items, select one, and then view the corresponding owner (and vice versa). Since the owner VC is on a different NC than the item NC, I get a "nested animation can result in corrupted navigation bar" and "Unbalanced calls to begin/end appearance transitions".
How do I push a view that is a member of another NC to a different NC?
Each navigation controller has a viewControllers
property:
@property(nonatomic, copy) NSArray *viewControllers
This is just an array of all the view controllers in that navigation controllers stack. When you "push a view that is a member of another NC to a different NC", you could first remove that view controller from the first navigation controller's viewControllers
array before pushing that same view controller onto the second navigation controller's stack.
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.