what is the iOS 6 change in gesture recognizers the docs are hinting at?
what is the iOS 6 change in gesture recognizers the docs are hinting at?
- Subject: what is the iOS 6 change in gesture recognizers the docs are hinting at?
- From: Matt Neuburg <email@hidden>
- Date: Wed, 02 Jan 2013 12:29:44 -0800
Okay, I figured this out. They *are* hinting at gestureRecognizerShouldBegin: here. The reason why I was confused is that a UIButton's default implementation of gestureRecognizerShouldBegin:, which is undocumented (of course), is to return NO if the gesture recognizer is a single tap gesture recognizer **belonging to a superview of the button**, but YES otherwise. I was testing initially by attaching the gesture recognizer to the button, so I was seeing the old iOS 5 behavior where the gesture recognizer breaks the button. m.
> The docs say about iOS 6:
>
> "In iOS 6, changes have been introduced so that you no longer need to set a delegate and implement a method for single-finger and single-tap gesture recognizers. This makes them work well with the UIControl objects."
>
> Really? Can anyone tell me what those changes might be? I can't find any way in which gesture recognizers magically work without a delegate and an action method. And if I attach one to a control, it breaks the control, just as in iOS 5. So what's changed?
>
> I see the new UIView method gestureRecognizerShouldBegin:, but I don't see how that's relevant.
>
> (I hate when the docs are coy like this. These are the docs, people, not a guessing game!)
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden