在pushViewController之后加入如下代码:
[self.navigationController pushViewController:viewController animated:YES];
// 开启iOS7的滑动返回效果
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)])
{
self.navigationController.interactivePopGestureRecognizer.delegate =nil;
}
原文链接:http://blog.csdn.net/zhaoxy_thu/article/details/15811189