【发布时间】:2016-02-26 17:26:39
【问题描述】:
【问题讨论】:
-
您是否尝试在表格视图中添加页脚并在页脚中显示行数?另外,如果您不希望页脚浮动,请尝试使用分组单元格。
-
看看下面的答案。
标签: uitableview dictionary nsdictionary plist tableviewcell
【问题讨论】:
标签: uitableview dictionary nsdictionary plist tableviewcell
通过下面的 UITableViewDelegate 方法尝试使用表格视图页脚:
- (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
返回一个带有表格行数的标签。如果您不希望页脚浮动,请使用 UITableViewStyleGrouped。
查看this了解更多详情
【讨论】:
UIView *fview = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 375, 105)]; fview.backgroundColor =[UIColor colorWithPatternImage:[UIImage imageNamed:@"footer.png"]]; self.tableView.tableFooterView = fview;