objective-c - ios 隐藏navigationBar之后右滑手势失效问题
黄舟
黄舟 2017-04-24 09:12:34
0
3
427

ios 隐藏navigationBar之后右滑手势失效了。
然后google了下 解决方法
self.navigationController.interactivePopGestureRecognizer.delegate = (id) self;
手势可以了,但是返回去的页面navigationBar消失了
这个怎么解决?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
巴扎黑

Check to see if it is written on the interface you return to
self.navigationController.navigationBarHidden = NO;

洪涛

The action of hiding the navigationBar will hide the navigationBar of all ViewControllers under the navigationBar.
(In fact, a more accurate statement is that navigationController only maintains one navigationBar).

If the process under navigationController wants to dynamically hide the navigationBar,
A better way is to hide the navigationBar of the navigationController itself,
Then each interface creates and maintains its own navigationBar.

迷茫

In viewWillAppear of the returned Viewcontroller

self.navigationController.navigationBarHidden = NO;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template