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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com