我的应用包含一个 `UITableView`,其中有节尾。当用户滚动到tableView的底部时,有时最后一个单元格和tableFooter之间会出现分隔符插入。这种行为不一致。
但是你可以轻松地使用相同的方法来复现这个问题。
有没有办法强制这个分隔符始终出现或永远不出现?你们有没有注意到这种不一致的行为?对我来说似乎像是一个 bug。
编辑
我正在使用
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UILabel *footer = [[UILabel alloc] init];
footer.backgroundColor = [UIColor whiteColor];
footer.font = [footer.font fontWithSize:15];
footer.textAlignment = NSTextAlignmentCenter;
return footer;
}
但是你可以轻松地使用相同的方法来复现这个问题。
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section;
viewForFooter...
中的代码是什么? - Fogmeister