自定义 UINavigationController 开启滑动返

2016-04-12  本文已影响65人  小猪圣骑士

/* 为 self 创造弱引用 */

__weak typeof(self) weakSelf = self;

/* 开启返回手势效果 */

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

self.interactivePopGestureRecognizer.delegate = weakSelf;

}

上一篇下一篇

猜你喜欢

热点阅读