title: How to call parent table view method from a cell?
body: <p>I have a custom cell with a label that should trigger a method of parent/table view controller.</p>
  
  <p>Even though XCode provides me that method in autocomplete suggestions, it throws an error when  I tap on that particular label:</p>
  
  <pre><code>UITableViewWrapperView showUserProfile unrecognized selector sent to instance
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>    @implementation ItemTableViewCell
  
      @synthesize item;
  
      - (void)awakeFromNib
      {
          self.authorLabel.userInteractionEnabled = YES;
          UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showUserProfile)];
          [self.authorLabel addGestureRecognizer:tap];
      }
  
      - (void)setSelected:(BOOL)selected animated:(BOOL)animated
      {
          [super setSelected:selected animated:animated];
      }
  
      - (void)showUserProfile
      {
          id parentView = [self superview];
          [parentView showUserProfile];
      }
  
      @end
  </code></pre>
  
  <p>Thanks!</p>