前言
側(cè)滑返回功能默認(rèn)是開啟颓帝,但需要我們在storyBoard做一個這樣的設(shè)置
exampleImg2.png
將Hide Bottom Bar On Push 這個選項勾選上
但當(dāng)我們在我們的controller里定義返回功能响疚,側(cè)滑返回功能就會失效,如何解決呢,請看下面的代碼
代碼如下
- (void)viewDidLoad {
[super viewDidLoad];
//打開側(cè)滑返回
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
}