Reputation: 1403
I have a button which i drags using the code:
[myButton addTarget:self action:@selector(dragged:withEvent:) forControlEvents:UIControlEventTouchDragInside];
is there any controlEvent that can be used as touches ended.
Upvotes: 2
Views: 1371
Reputation: 1608
Set BOTH touchUpInside and touchUpOutside events.
Check them out here: Control Events
Upvotes: 0
Reputation: 4388
I think you are looking for: UIControlEventTouchUpInside
and/or UIControlEventTouchUpOutside
Upvotes: 4