前言
側(cè)滑返回功能默認(rèn)是開啟,但需要我們?cè)趕toryBoard做一個(gè)這樣的設(shè)置

exampleImg2.png
將Hide Bottom Bar On Push 這個(gè)選項(xiàng)勾選上
但當(dāng)我們?cè)谖覀兊腸ontroller里定義返回功能,側(cè)滑返回功能就會(huì)失效,如何解決呢,請(qǐng)看下面的代碼
代碼如下
- (void)viewDidLoad {
[super viewDidLoad];
//打開側(cè)滑返回
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
}