[英]iphone Pop screens from navigation controller
I want to pop more than one controller that means If I have totally 6 screens. 我想弹出多个控制器,这意味着如果我总共有6个屏幕。 Sometimes I have to come to 2nd view controller or 3rd controller from 6 th controll. 有时我必须从第6个控制点转到第2个视图控制器或第3个控制器。
I know how to pop the current controller or poping till root view controller. 我知道如何弹出当前控制器或弹出直到根视图控制器。 But need to pop till particular controller. 但是需要弹出直到特定的控制器。
Can any one please guide me. 谁能指导我。 Thanks in advance. 提前致谢。
In UINavigationController
you have a method called - (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
. 在UINavigationController
您有一个名为- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
。
You can look for your UIViewController
in the viewControllers
property, and then pop to the view controller you want. 您可以在viewControllers
属性中查找UIViewController
,然后viewControllers
的视图控制器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.