You can remove the bottom border by writing this line below in viewdidLoad,
self.tblMyTable.separatorStyle = UITableViewCellSeparatorStyle.None
And remove the left indent by writing this to cellForRow,
cell.separatorInset = UIEdgeInsetsZero cell.layoutMargins = UIEdgeInsetsZero
Update for Swift 3.0:
cell?.separatorInset = UIEdgeInsets.zero cell?.layoutMargins = UIEdgeInsets.zero
Jigar tarsariya
source share