如何开启ios7自带的滑动返回

想要适用ios7的滑动返回必须有下面一句才行。。。。。或者navigationcontroller的返回按钮不自己设置的情况。

    开启iOS7的滑动返回效果

    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {

        self.navigationController.interactivePopGestureRecognizer.delegate = nil;

    }

猜你喜欢

转载自zhangmingwei.iteye.com/blog/2046640