//去除表格左侧分割线代码开始
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
//ios8
if cell.respondsToSelector("setSeparatorInset:"){
cell.separatorInset = UIEdgeInsetsZero
tableView.separatorInset = UIEdgeInsetsZero
//cell.separatorInset.left = 5
}
if cell.respondsToSelector("setLayoutMargins:"){
cell.layoutMargins = UIEdgeInsetsZero
tableView.layoutMargins = UIEdgeInsetsZero
//cell.separatorInset.left = 5
}
}
//IOS tableview 消除 分割线短 15 像素 ios8方法 swift版
原文:http://www.cnblogs.com/toxufe/p/4641751.html