Is there a way to set separator inset for a single UITableViewCell? It seems I can only set global UITableView separator inset with setSeparatorInset:
method, but I would like to have different insets in the same UITableView. Is it possible somehow?
I tried using tableView:willDisplayCell:forRowAtIndexPath:
for setting separator inset in a concrete UITableViewCell as below, but it does not work.
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
...
[cell setSeparatorInset:UIEdgeInsetsMake(0, 50, 0, 0)];
}
I am working on iOS7.