Jeff
Jeff

Reputation: 1403

event for touches ended for a uibutton

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

Answers (2)

Beaker
Beaker

Reputation: 1608

Set BOTH touchUpInside and touchUpOutside events.

Check them out here: Control Events

Upvotes: 0

dredful
dredful

Reputation: 4388

I think you are looking for: UIControlEventTouchUpInside and/or UIControlEventTouchUpOutside

Upvotes: 4

Related Questions