title: Adding UITapGestureRecognizer to XIB
body: <p>I've created a custom XIB extending from UITableViewHeaderFooterView and attempting to add a gesture recognizer. Only problem is attempting to add the recognizer via interface builder results in the object being added to the top level hierarchy and the following error causing my app to crash:</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'invalid nib registered for identifier (AccordionHeader) - nib must contain exactly one top level object which must be a UITableViewHeaderFooterView instance'</p>
  </blockquote>
  
  <p>To the best of my knowledge there's no "viewDidLoad" equivalent available or I would just be adding the recognizer programmatically. Is there another way to do this?</p>