YBTBaseViewController是继承于UIViewController的一个父类,下方所有的控制器都直接或者间接继承于YBTBaseViewController。由于跳转到XHDemoWeChatMessageTableViewController用的是模式跳转,所以先返回去然后再用navigation跳转下一个页面,用下面方法,这样可以保留下一个页面的上方的导航条。还有其他什么原因就不知道了。。。
@interface GroupCharSelectController : YBTBaseViewController{
}
@property (nonatomic, assign)YBTBaseViewController *PreVC;
@end
@implementation GroupCharSelectController
XHDemoWeChatMessageTableViewController *demoWeChatMessageTableViewController = [[XHDemoWeChatMessageTableViewController alloc] init];
[self dismissViewControllerAnimated:NO completion:^{
[self.PreVC setHidesBottomBarWhenPushed:YES];
[self.PreVC.navigationController pushViewController:demoWeChatMessageTableViewController animated:YES];
[self.PreVC setHidesBottomBarWhenPushed:NO];
}];
@end
最后
以上就是唠叨黑夜最近收集整理的关于实现从一个界面返回有导航条的界面然后再跳转到下一个界面的全部内容,更多相关实现从一个界面返回有导航条内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复