How to add a footer to the UITableView?

前端 未结 11 1973
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 04:23

I\'me using this code to add a footer to the TableView. It has 20 sections, and each section a few rows. There\'s a titleForHeaderInSection, and sectionForSectionIndexTitle

11条回答
  •  不知归路
    2020-11-29 04:59

    I used that and it worked Perfectly :)

        UIView* footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 500)];
        [footerView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"ProductCellBackground.png"]]];
        self.tableView.tableFooterView = footerView;
        [self.tableView setSeparatorStyle:(UITableViewCellSeparatorStyleNone)];
        [self.tableView setContentInset:(UIEdgeInsetsMake(0, 0, -500, 0))];
    

提交回复
热议问题