美文网首页
swift中tableView

swift中tableView

作者: onebook_ | 来源:发表于2019-06-23 19:29 被阅读0次

// 去掉tableView中的所有的线

tableView.separatorStyle = UITableViewCell.SeparatorStyle.none

// 去掉tableView中多余的线

tableView.tableFooterView= UIView.init(frame: CGRect.zero)

// 将分隔线offset设为零,即将分割线左边边距设为0

tableView.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)

// tableView 禁用某一行的点击效果

self.selectionStyle = .none

// tableView 点击某一行阴影消失

tableView.deselectRow(at: indexPath, animated:true)

相关文章

网友评论

      本文标题:swift中tableView

      本文链接:https://www.haomeiwen.com/subject/vpyvxctx.html