I have a xib file which I created using New -> iOS -> User Interface -> View
. Then to inflate/load it into my UIViewController I do
UIView *myView = [[UINib nibWithNibName:@"FileName" bundle:nil] instantiateWithOwner:self options:nil].firstObject;
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)?