When you add a UITableView to your iOS application, there is always a light gray one pixel separator between each cell or row in UITableView.
You can remove this border by setting UITableView’s separatorStyle property to UITableViewCellSeparatorStyleNone and viola, there is no more separators between cells in UITableView.
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
One thing to note here is that you can do this only for the whole UITableView and not for each individual cell for example inside cellForRowAtIndexPath delegate method.
separatorStyle of UITableView has 3 options:
UITableViewCellSeparatorStyleNone
UITableViewCellSeparatorStyleSingleLine — Default
UITableViewCellSeparatorStyleSingleLineEtched
Advertisement