iOS中Navigation中左滑pop页面类似于系统的

时间:2018-08-05 12:49:50
【文件属性】:
文件名称:iOS中Navigation中左滑pop页面类似于系统的
文件大小:3KB
文件格式:ZIP
更新时间:2018-08-05 12:49:50
iOS,pop 其实就是建立了一个UIPanGestureRecognizer手势,然后该手势触发方法,panGestureRecognizer.state pan的状态。 并且设置self.interactivePopGestureRecognizer.enabled = NO; 原生左滑无效 下面是实例代码:在view中,任何位置左移触发pop方法。 知识点:[panGestureRecognizer locationInView:XX] 获取pan手势的CGPoint。(继承ABENavViewController类,就可以使用自定义view左滑手势的pop方法; ABENavViewController为UINavigationController的子类。
【文件预览】:
NavigationController
----NavigationViewController.h(305B)
----NavigationViewController.m(5KB)

网友评论