iOS UITableView 实现去除Section的分割线,保留Cell的分割线
阿神
阿神 2017-04-17 13:17:59
0
5
2149
阿神
阿神

闭关修行中......

reply all(5)
巴扎黑

First of all, I think you need to set the background color first, so that you will not confuse the dividing line of the section or the background color of the tableview
Usually when we are making custom cells or section headers and footers, we try to replace them with a view with a height of 1-3 points, so that we have more space to control. It’s what we usually call a blindfold
If you still can’t solve it, it’s best to post the code

小葫芦
+ (void)hideEmptySeparators:(UITableView *)tableView
{
  UIView *v = [[UIView alloc] initWithFrame:CGRectZero];
 [tableView setTableFooterView:v];
}

lz Can you try calling this code during viewDidLoad?

刘奇

I use iOS8 SDK, the default is the effect you need:

伊谢尔伦

tableview changed to plain

Ty80

Set the tableView of separate style to 成none, and then add a custom bottom line in the custom cell. This is the method I use!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template