设置导航栏右滑返回功能
作者:
KermitX | 来源:发表于
2017-01-06 11:00 被阅读21次// #include <objc/runtime.h>
// 开启
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
// self.navigationController.interactivePopGestureRecognizer.enabled = YES;
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
// object_setClass(self.navigationController.interactivePopGestureRecognizer, [UIPanGestureRecognizer class]);
}
本文标题:设置导航栏右滑返回功能
本文链接:https://www.haomeiwen.com/subject/bcbtbttx.html
网友评论