Tuesday, 15 March 2011

iphone - How can I determine whether my UIButton's event is Touch Down? -


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