IOS 关于模态弹出后 导航不能跳转问题

2017-10-10  本文已影响0人  花开花非花

写代码碰到一个很奇怪的问题,就是模态以后在push不能跳转了,后来百度看了别人的代码,是因为导航的问题,,模态弹出以后没有了导航,,添加一句代码即可

UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:VC];

[self.navigationController presentViewController:navi animated:YES completion:nil];

上一篇 下一篇

猜你喜欢

热点阅读