Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView tableView cell separator is not showing in group style ios 7

I am having a problem in displaying cell separator of grouped style tableView in iOS 7.

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

This doesn't show cell separator. Kindly suggest

like image 627
Nabeel Thobani Avatar asked Dec 25 '22 17:12

Nabeel Thobani


1 Answers

In iOS7 design. try to do the below:

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

and also you have to do:

[projectTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];

You can set the 'Separator Inset' from the nib or Storyboard:

enter image description here

like image 67
Dhaval Bhadania Avatar answered Dec 28 '22 07:12

Dhaval Bhadania