How to make an equal width separator for UITableViewCell
on a storyboard without adding another UIView
?
Asked
Active
Viewed 72 times
0
1 Answers
0
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}

Community
- 1
- 1

Prashant Tukadiya
- 15,838
- 4
- 62
- 98