UINavigationViewController interactivePopGestureRecognizer
来源:互联网 发布:淘宝免费买东西的软件 编辑:程序博客网 时间:2024/06/05 15:43
如何打开交互手势,在自定义返回按钮的情况下
self.navigationController.interactivePopGestureRecognizer.enable = YES;self.navigationController.interactivePopGestureRecognizer.delegate = self
开发中遇到的问题, UIWebView 的情况下,如何支持 交互手势
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer{ return YES;}- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer{ return [gestureRecognizer isKindOfClass:UIScreenEdgePanGestureRecognizer.class];}
for (UIGestureRecognizer *gestureRecognizer in _colView.gestureRecognizers) { [gestureRecognizer requireGestureRecognizerToFail:self.navigationController.interactivePopGestureRecognizer]; }
应该避免的问题
Thread 1, Queue : com.apple.main-thread#0 0x3a80cb66 in objc_msgSend ()#1 0x32e23f9a in -[UIGestureRecognizer _delegateCanPreventGestureRecognizer:] ()#2 0x32cce418 in -[UIGestureRecognizer _isExcludedByGesture:] ()#3 0x32c9410e in _UIGestureRecognizerUpdate ()#4 0x32ccd1b4 in -[UIWindow _sendGesturesForEvent:] ()#5 0x32cccb62 in -[UIWindow sendEvent:] ()#6 0x32ca1f58 in -[UIApplication sendEvent:] ()#7 0x32ca0746 in _UIApplicationHandleEventQueue ()#8 0x304e2f26 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()#9 0x304e23ee in __CFRunLoopDoSources0 ()#10 0x304e0bde in __CFRunLoopRun ()#11 0x3044b540 in CFRunLoopRunSpecific ()#12 0x3044b322 in CFRunLoopRunInMode ()#13 0x351822ea in GSEventRunModal ()#14 0x32d021e4 in UIApplicationMain ()#15 0x000df478 in main at /path/to/main.m:17#16 0x000df398 in start ()
self.navigationController.interactivePopGestureRecognizer.delegate = nil orself.navigationController.interactivePopGestureRecognizer.enabled = NOin viewWillDisappear
for (UIGestureRecognizer *gestureRecognizer in _colView.gestureRecognizers) { [gestureRecognizer requireGestureRecognizerToFail:self.navigationController.interactivePopGestureRecognizer]; }
http://stackoverflow.com/questions/23261304/navigation-bar-title-bug-with-interactivepopgesturerecognizer
http://stackoverflow.com/questions/21366185/can-a-uiwebview-in-a-uinavigationcontroller-allow-the-ios-7-swipe-to-pop-built-i
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScreenEdgePanGestureRecognizer_class/index.html#//apple_ref/occ/cl/UIScreenEdgePanGestureRecognizer
0 0
- UINavigationViewController interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- interactivePopGestureRecognizer
- UINavigationViewController视图跳转
- iOS的UINavigationViewController 相关
- iOS---interactivePopGestureRecognizer
- interactivePopGestureRecognizer使用注意
- 右滑动 返回 interactivePopGestureRecognizer
- interactivePopGestureRecognizer(右滑)
- interactivePopGestureRecognizer右滑手势
- interactivePopGestureRecognizer 完美使用
- navigationController.interactivePopGestureRecognizer.enabled
- 类似网易新闻客户端的滑动UINavigationViewController
- 解决interactivePopGestureRecognizer与UIPanGestureRecognizer冲突
- 设备树(一)linux内核主线了解dts
- 循环队列的顺序存储
- ubuntu下php+php-fpm环境配置
- 在线更新Android SDK
- 异步运算考虑使用Callable接口 有返回值的线程
- UINavigationViewController interactivePopGestureRecognizer
- 南大软院大神养成--php
- springMVC实例(一)
- Android开发工具(JDK + Android Sdk + ADT+ Eclipse)
- 【android实战经验】关闭Fragment的方法
- 获取设备的一个唯一辨识号 -- UUID
- 19 IO流
- C++模板的编译与连接及inline 和 static 的说明
- 设备树(二)linux内核顶层am335x-evm.dts