沧海一粟

----not just a programmer

导航

UINavigationController popToViewController用法

popToViewController用法 


[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];

for (UIViewController *controller inself.navigationController.viewControllers) {
    if ([controller isKindOfClass:[你要跳转到的Controller class]]) {
        [self.navigationControllerpopToViewController:controller animated:YES];
    }
}

posted on 2013-07-28 08:11  沧海一粟-啊添  阅读(609)  评论(0编辑  收藏  举报