Search code examples
iphoneuitableviewfooter

Size of tablefooter not increasing in uitableview


The size of the table footer is not increasing, it seems like it is fixed by default. How can we change it ? I am using the below mentioned code for this but it is not working. Can anyone help me in this ? Thanks in Advance.

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {

    UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)] autorelease];
    view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"blue-bg.jpg"]];
    return view;

}

Solution

  • -(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
    {
        return 50;
    }