override func viewDidLayoutSubviews() {
? ? if(self.tableView?.responds(to: #selector(setter: UITableViewCell.separatorInset)))! {
? ? ? ? self.tableView?.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0)
? ? }
? ? if(self.tableView?.responds(to: #selector(setter: UIView.layoutMargins)))! {
? ? ? ? self.tableView?.layoutMargins = UIEdgeInsetsMake(0, 0, 0, 0)
? ? }
}
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
? ? if(cell.responds(to: #selector(setter: UITableViewCell.separatorInset))) {
? ? ? ? cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0)
? ? }
? ? if(cell.responds(to: #selector(setter: UIView.layoutMargins))) {
? ? ? ? cell.layoutMargins = UIEdgeInsetsMake(0, 0, 0, 0)
? ? }
}