UITableView tableView cell separator not showing in ios 7 group style

I had a problem displaying the cell separator of a TableView table in iOS 7.

if ([projectTable respondsToSelector:@selector(setSeparatorInset:)]) {
        [projectTable setSeparatorInset:UIEdgeInsetsZero];
        projectTable.separatorColor = [UIColor blackColor];
}

It does not show a cell delimiter. Request to offer

+4
source share
2 answers

In the design of iOS7 . try the following:

[projectTable setSeparatorInset:UIEdgeInsetsMake(0, 0, 0, 0)];

and also you need:

[projectTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];

You can install ' from : Separator Inset'nib or Storyboard

enter image description here

+10
source

Despite the fact that it has a default value of ( UITableViewCellSeparatorStyleSingleLine), have you tried to resell your resource separatorStyle?

[projectTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLineEtched];
0
source

All Articles