iOS 返回到指定的ViewController

for (UIViewController *vc in self.navigationController.viewControllers) {
     if ([vc isKindOfClass:[MyViewController class]]) {
         [self.navigationController popToViewController:vc animated:YES];
} }

 

posted on 2016-08-05 11:05  夜夜清雨  阅读(214)  评论(0编辑  收藏  举报

导航