iOS 5.1 swipe gesture hijacked by UISplitViewContr

2019-01-23 15:41发布

问题:

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.