iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid?

孤街浪徒 提交于 2019-11-27 16:10:59

问题


A new behavior in iOS 5.1 related to UISplitViewController apps seems to be intercepting UISlider motion with undesired results. This might also apply to UISegmented Controls and any other control surface that handles left-to-right gestures.

With a UISplitView in Portrait orientation, the Master view is normally hidden. Starting in iOS 5.1 a right swipe on screen brings up the Master View on the left side of the device. The problem is, sliding the thumb of my UISlider control is misinterpreted as a screen swipe: if I give the UISlider thumb a sharp push to the right, the Master panel pops up.

In my app, there are undesired side-effects (and performance issues) with brining up the Master view.

I consider this behavior an Apple bug. Any ideas how to work around it? Can I somehow have the UISlider capture the gesture and process it, without passing it up the responder chain?

Thanks in advance for any insight!


回答1:


Apple confirmed the issue as a duplicate of a previously reported bug that is currently under investigation (Bug ID# 10170209).

The workaround seems to be functioning fine for now.



来源:https://stackoverflow.com/questions/9691523/ios-5-1-swipe-gesture-hijacked-by-uisplitviewcontroller-how-to-avoid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!