http://www.cnblogs.com/lexingyu/p/3432444.html
iOS 7中在传统的左上角返回键之外,提供了右滑返回上一级界面的手势。支持此手势的是UINavigationController中新增的属性
interactivePopGestureRecognizer,即右滑返回只支持以UINavigationController为容器的ViewController间切换,要想在自定义容器中使用,需要一些额外的工作。
基本地,控制ViewController是否启用右滑返回,只需要这样:
1 self.navigationController.interactivePopGestureRecognizer.enabled = YES;
默认情况下enabled为YES。