I'm routing different UIControlEvent to one event handler. Wondering is there a way to determine which UIControlEvent the sender came from? e.g. (Touch Up Inside, Editing Did Begin, etc...)
- (IBAction) MultipleEvents: (UITextField *)sender {
NSLog(@"Hello World");
}
You can set up a second parameter UIEvent* which is going to have a "type".
- (void)action:(id)sender forEvent:(UIEvent *)event;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With