Use the following method:
if (indexPath.row == {your row number}){
cell.separatorInset = UIEdgeInsetsMake(0, 15, 0, 0);
}
In iOS7, the table view has 15 left inserts for the separator by default, you can change it according to your requirement using the code above.
source
share