title: UIButton selector not called
body: <p>I have a UIButton inside a class. I want to set a target for the button like so.</p>
  
  <pre><code>[myController.dateButton addTarget:self action:@selector(showAction:) forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>For some reason, the selector is never called when I press the button. I tried to debug the problem by doing the following but I get nil for the NSSet</p>
  
  <pre><code>NSSet *allTargets = [myController.dateButton allTargets];
  </code></pre>
  
  <p>Any suggestions on what I may be doing wrong?</p>
  
  <p>The selector is defined as follows:</p>
  
  <pre><code>- (void)showAction:(id)sender
  {
     // Do stuff
  }
  </code></pre>