/* 为 self 创造弱引用 */
__weak typeof(self) weakSelf = self;
/* 开启返回手势效果 */
if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.interactivePopGestureRecognizer.delegate = weakSelf;
}
/* 为 self 创造弱引用 */
__weak typeof(self) weakSelf = self;
/* 开启返回手势效果 */
if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.interactivePopGestureRecognizer.delegate = weakSelf;
}
本文标题:自定义 UINavigationController 开启滑动返
本文链接:https://www.haomeiwen.com/subject/njcwlttx.html
网友评论