页面跳转问题presentViewController
2014-06-04 10:11
225 查看
跳转页面的时候 我用的是 [self presentViewController:nLogin animated:NO completion:^{
}];,有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];
}
}];,有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];
}
相关文章推荐
- IOS——使用PresentViewController推送页面,各页面间跳转及遇到的问题
- Swift中使用presentViewController跳转页面后模拟器显示黑屏问题
- 使用presentViewController跳转到上上个页面,实现多层跳转的两种方法。
- iOS 关于presentViewController弹出页面反应迟钝的问题
- iOS 关于presentViewController弹出页面反应迟钝的问题
- present 一个页面后 使用pushviewcontroller的问题
- ios presentViewController:destinationView跳转后黑屏问题
- ios wkwebview 跳转到新的controllerview加载页面 出现闪退问题
- iOS 关于presentViewController弹出页面反应迟钝的问题
- IOS-44-解决用模态方式presentViewController推出页面时导航栏消失问题
- ios pushViewController 页面不跳转问题解决
- ios presentViewController:destinationView跳转后黑屏问题
- 解决presentViewController的延迟跳转问题
- iOS 关于presentViewController弹出页面反应迟钝的问题
- 使用presentViewController跳转时,页面黑色
- iOS 关于presentViewController弹出页面反应迟钝的问题
- 关于presentViewController的后的background变黑的问题
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- 在确认UIAlertView后,调用presentViewController无效的问题