ios 跳转到制定界面

2017-10-18  本文已影响8人  鹏飞说

[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:([self.navigationController.viewControllers count] -2)] animated:YES];

for (UIViewController *temp in self.navigationController.viewControllers) {

if ([temp isKindOfClass:[你要跳转到的Controller class]]) {

[self.navigationController popToViewController:temp animated:YES];

}

}

上一篇下一篇

猜你喜欢

热点阅读