Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 200
jbbenni Avatar asked Mar 13 '12 20:03

jbbenni


1 Answers

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.

like image 150
jbbenni Avatar answered Dec 23 '22 18:12

jbbenni