去掉UITableView中多余空行
2015-07-22 10:52
393 查看
把下面这个方法拷贝到你的代码中,然后调用:
[self setExtraCellLineHidden:self.tableView];
方法:
- (void)setExtraCellLineHidden: (UITableView *)tableView
{
UIView *view = [UIView new];
view.backgroundColor = [UIColor clearColor];
[tableView setTableFooterView:view];
}
效果:
[self setExtraCellLineHidden:self.tableView];
方法:
- (void)setExtraCellLineHidden: (UITableView *)tableView
{
UIView *view = [UIView new];
view.backgroundColor = [UIColor clearColor];
[tableView setTableFooterView:view];
}
效果:
相关文章推荐
- 2015多校第一场 hdu 5288 OO’s Sequence
- SPOJ 375 Query on a tree (树链剖分+线段树)
- Target runtime com.genuitec.runtime.generic.jee60 is not defined的解决方案
- What are the best practices for building something like a News Feed?
- UIViewAdditions(一个非常方便的工具类用它)
- 关于configure中build,target,host中的若干问题
- 【从零开始学NGUI 】 (二)Label
- UIView frame, bounds and center
- RMQ(Range Minimum/Maximum Query)问题——ST算法
- UESTC 360 Another LCIS(线段树区间更新)
- 【UIKit】-3-UIAccessibility - 元素可访问性,辅助功能
- HDU 5288 OO's sequence (2015多校第一场 二分查找)
- HDU 5288 OO‘s sequence (技巧)
- 【从零开始学NGUI 】 (一)安装NGUI插件
- HDU 1159 Common Subsequence
- 自定义UITableViewCell 上按钮点击事件处理
- 【UIKit】-2- UIAccelerometer-加速计事件
- HDU 5288 OO’s Sequence(多校第一场1001)
- 关于mule中使用jdbc时报No Suitable Driver found错误的问题
- Convert UOM values