0

I don't know whats happening but when I prolong my tap on a table view header cell the app crashes with Bad Excess Error. I am not registering any tapGestures in the viewController or in my custom tableViewCell class.

This is my code for my header cell

    CustomTableViewCell = (CustomTableViewCell *)[self.tableView dequeueReusableCellWithIdentifier:@"headerCell"];
    UIView *view = cell.contentView;
    return view;
Junaid Ahmed
  • 175
  • 1
  • 9

1 Answers1

0

Ok after a bit of research found this little hack.

    while (cell.contentView.gestureRecognizers.count) {
        [cell.contentView removeGestureRecognizer:[cell.contentView.gestureRecognizers objectAtIndex:0]];
    }

How to Implement Custom Table View Section Headers and Footers with Storyboard

Community
  • 1
  • 1
Junaid Ahmed
  • 175
  • 1
  • 9