title: How to set IBAction on view obtained from xib
body: <p>I have a xib file which I created using <code>New -&gt; iOS -&gt; User Interface -&gt; View</code>. Then to inflate/load it into my UIViewController I do</p>
  
  <pre><code>UIView *myView = [[UINib nibWithNibName:@"FileName" bundle:nil] instantiateWithOwner:self options:nil].firstObject;
  </code></pre>
  
  <p>Now that I have the view, I need to know when the user taps on it. How might I set such IBAction (or whatever the appropriate term)?</p>