在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