An iOS programming gotcha I came across today…

September 17th, 2012 by Richard Felix

If you’re using a UIButton and it’s responding to UIControlEventTouchDown but nothing else, for example UIControlEventTouchUpInside, first check to make sure you don’t have a conflict with a gesture recognizer that is swallowing the touches. If that isn’t the case, you probably have some touchesBegan/Ended code somewhere that’s catching the UIControlEventTouchUpInside event and doing nothing with it. Look for that function.

Join our private mailing list

Get exclusive updates and insights from Sense Labs right in your inbox. (No more than twice a week)

No comments yet, be the first.

Leave a Comment