}];,有A到B再到C,我现在再C页面返回的时候我想直接跳转到A页面 应该怎么做呢?
在C中
//关掉自己
[self dismissViewControllerAnimated:YES completion:^(){
//关掉注册controller
[[NSNotificationCenter defaultCenter] postNotificationName:NOTIFICATION_CLOSE_B object:nil userInfo:nil];
}];
在B中添加监视通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(close) name:NOTIFICATION_CLOSE_B object:nil];
-(void) close{
[self dismissViewControllerAnimated:YES completion:nil];
}
页面跳转问题presentViewController,布布扣,bubuko.com
原文:http://blog.csdn.net/xdrt81y/article/details/28393027