Reputation: 1179
When I click a button for more than half a second, the button turns blue (being activated). Then, if I drag my touch out side the button, it is still activated and if i release my touch it activates my action.
How can I deactivate a UIButton when dragging outside?
Thanks.
Upvotes: 1
Views: 53
Reputation: 17414
The event you have wired up to the UIButton should be "touchUpInside"
This will have the behavior you desire.
Upvotes: 4