-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
//开启ios右滑返回
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
}
}
在当前视图控制器里附上以上代码即可解决