title: How to catch and handle all events of UIButton in a single method?
body: <p>I want to have a single method for all the buttons (and all their events) of a view. So far this is what I've got:</p>
  
  <pre><code>- (IBAction)uibuttonEvent:(id)idSender forEvent:(UIEvent*)uieventHandle
  {
      if (idSender == [self uibuttonConnectInput]) {
          if ([uieventHandle type] == UIEventTypeTouches) {
              [[self uibuttonConnectInput] setTitle:@"did it!" forState:UIControlStateNormal];
          }
  
      } else if (idSender == [self uibuttonSomething]) {
          ...
  
      }
  }
  </code></pre>
  
  <p>So now I can detect whether the event is a <code>UIEventTypeTouches</code> or not, but I want to check more specifically whether it is e.g. <code>UIControlEventTouchUpInside</code> - how can I do that?</p>