How can I pop a view from a UINavigationController and replace it with another in one operation?

后端 未结 16 2210
谎友^
谎友^ 2020-11-27 10:01

I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an

16条回答
  •  悲哀的现实
    2020-11-27 10:32

    This UINavigationController instance method might work...

    Pops view controllers until the specified view controller is the top view controller and then updates the display.

    - (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
    

提交回复
热议问题