ios 返回到指定的VC
可以让某个VC页面先跳转到Appdelegate页面,然后通过appdelegate跳转到指定的页面
AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication] delegate];
UINavigationController *nav = (UINavigationController *)app.window.rootViewController;
[nav popToRootViewControllerAnimated:NO];先推到顶堆栈,然后从堆栈指定到某个页面
IndexViewController *index = (IndexViewController *)nav.topViewController;
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
btn.tag =1;
[index menuAction:btn];