0

I have used the following code

- (void)viewDidLoad 
{
    [super viewDidLoad];

    // This will remove extra separators from tableview
    self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
}

I have set the frame of the tableFooterView to have a height of 0. I want to detect the click for below the footer in empty cells

I have got conditions like below and want to handle click on clicking gray part of below image enter image description here

Eliminate extra separators below UITableView

Community
  • 1
  • 1
Nischal Hada
  • 3,230
  • 3
  • 27
  • 57
  • Consider placing a clear `UIView` in the footer, and instead of making it `CGRectZero` making it a reasonable size, and add a `UITapGestureRecognizer` to that clear `UIView`. – JaredH Jul 09 '15 at 18:21
  • how can i set the remaining empty cells as the tableFooterView . How is it possible to calculate the height of tableFooterView with increasing and decreasing the remaining cells – Nischal Hada Jul 10 '15 at 01:12

0 Answers0