在 TableView 的末尾显示单元格的数量
Show amount of cell at the end of the TableView
我在 Table View Controller 中有联系人列表。如何确保在 table 的末尾显示联系人(或单元格)的数量???
我的 plist 中有 cell
的字典
尝试使用 table 通过以下 UITableViewDelegate 方法查看页脚:
- (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
Return 具有 table 行数的标签。如果您不想让页脚浮动,请使用 UITableViewStyleGrouped
。
查看 this 了解更多详情
我在 Table View Controller 中有联系人列表。如何确保在 table 的末尾显示联系人(或单元格)的数量??? 我的 plist 中有 cell
的字典尝试使用 table 通过以下 UITableViewDelegate 方法查看页脚:
- (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
Return 具有 table 行数的标签。如果您不想让页脚浮动,请使用 UITableViewStyleGrouped
。
查看 this 了解更多详情