IOS: Is there a way to determine which of the UIControlEvent the sender came from?

I am running another UIControlEvent for one event handler. I wonder if there is a way to determine which of the UIControlEvent the sender came from? e.g. (Touch Up Inside, Editing Did Begin, etc.)

- (IBAction) MultipleEvents: (UITextField *)sender { NSLog(@"Hello World"); } 
+6
ios
source share
1 answer

You can configure the second parameter UIEvent *, which will have a "type".

 - (void)action:(id)sender forEvent:(UIEvent *)event; 
+1
source share

All Articles