How can I determine if my button's event is down?
I want to do this as a function:
if (users click on touchdown event) {NSLog (@ "a"); } And if (users click on Touchpinse Event) {NSLog (@ "B"); } Ether You set up two different IBAction methods in Interface Builder or you have two different targets By determining:
- (zero) addTarget: (ID) Goal action: Control events for (SEL) operation: (UIControll events) Control Avent
button.
No comments:
Post a Comment