ios - 在iOS 7中删除UITableView的多余分隔符

标签 ios uitableview

对于我的UITableView我有这样的代码:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 4;
}

但是,当我启动我的应用程序时,它显示了一个额外的分隔符。它不是附加单元格-无法选择。如何解决?

最佳答案

Eliminate extra separators below UITableView

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{        
    return [UIView new];
    // If you are not using ARC:
    // return [[UIView new] autorelease];
}

关于ios - 在iOS 7中删除UITableView的多余分隔符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19857188/

相关文章:

ios - 传递从自定义 tableView Cell 定义的对象

ios - 显示在 TableView 部分标题顶部的编辑行操作

ios - UITableView崩溃,并且UITableViewCell的字符串中的逗号和空格

ios - 直接使用访问器的核心数据 NSTimeInterval 是错误的

ios - 文本输入垂直对齐

ios - AudioSessionInitialize 已弃用的修复程序?

ios - 尝试在 Swift 中找到何时关闭微调器的正确事件

swift - 类型 'UITableViewCell?' 的值没有成员 'delegate'

ios - 自动调整单元格在 Swift 中不起作用

ios - 在 ScrollView 上的 View 上添加约束显示异常