参数说明:vc:想要回到的控制器名字 nav: 当前的UINavigationController
-(void)popWantVC:(UIViewController*)vc nav:(UINavigationController*)nav{
for(UIViewController*controllerinnav.viewControllers) {
if([controllerisKindOfClass:[vcclass]]) {
[navpopToViewController:controller animated:YES];
}
}
}
网友评论