开发者

iphone Pop screens from navigation controller

开发者 https://www.devze.com 2023-01-19 18:49 出处:网络
I want to pop more than one controller that means If I have totally 6 screens. Sometimes I have to come to 2nd view controller or 3rd controller from 6 th controll.

I want to pop more than one controller that means If I have totally 6 screens. Sometimes I have to come to 2nd view controller or 3rd controller from 6 th controll.

I know how to pop the curr开发者_JS百科ent 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.

You can look for your UIViewController in the viewControllers property, and then pop to the view controller you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消