What I want to do is set up a bunch of UIControl
objects to send all events through the same handler. That handler than needs to determine what the appropriate
You're correct; UIEvent.type
does not work that way. Internally, UIControl
subclasses are basically using the sendActionsForControlEvents: method, which means they can choose to put anything they want as the parameter.
As for how to know, the simple answer is to have a separate method for each control event.