84669 orang belajar
152542 orang belajar
20005 orang belajar
5487 orang belajar
7821 orang belajar
359900 orang belajar
3350 orang belajar
180660 orang belajar
48569 orang belajar
18603 orang belajar
40936 orang belajar
1549 orang belajar
1183 orang belajar
32909 orang belajar
闭关修行中......
首先我觉得你要先把背景颜色设置好,这样你不会把section的分割线或者tableview的背景颜色混淆 通常我们在做自定义的cell或者section header and footer,我们尽量用一个高度为1-3point的view来代替,这样我的话我们就有更多可以操控的空间。就是我们通常说的障眼法 如果你还解决不了最好发代码上来
+ (void)hideEmptySeparators:(UITableView *)tableView { UIView *v = [[UIView alloc] initWithFrame:CGRectZero]; [tableView setTableFooterView:v]; }
lz 你试试在viewDidLoad 的时候调用这段代码?
我用iOS8 SDK,默认就是你需要的效果:
tableview 改成 plain
将tableView的separate style设置成none, 然后在自定义cell中加上一个自定义的底部线, 这是我使用的方法!
tableView
separate style
成none
cell
首先我觉得你要先把背景颜色设置好,这样你不会把section的分割线或者tableview的背景颜色混淆
通常我们在做自定义的cell或者section header and footer,我们尽量用一个高度为1-3point的view来代替,这样我的话我们就有更多可以操控的空间。就是我们通常说的障眼法
如果你还解决不了最好发代码上来
lz 你试试在viewDidLoad 的时候调用这段代码?
我用iOS8 SDK,默认就是你需要的效果:
tableview 改成 plain
将
tableView
的separate style
设置成none
, 然后在自定义cell
中加上一个自定义的底部线, 这是我使用的方法!