func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
if cell.respondsToSelector(Selector("setSeparatorInset:")) {
cell.separatorInset = UIEdgeInsetsZero
}
if cell.respondsToSelector(Selector("setLayoutMargins:")) {
cell.layoutMargins = UIEdgeInsetsZero
}
}
override func viewDidLayoutSubviews() {
if self.settingTableView.respondsToSelector(Selector("setSeparatorInset:")) {
self.settingTableView.separatorInset = UIEdgeInsetsZero
}
if self.settingTableView.respondsToSelector(Selector("setLayoutMargins:")) {
self.settingTableView.layoutMargins = UIEdgeInsetsZero
}
}```
网友评论