swift 关于tableview

1.补全tableview的分割线

 1 professTabView.separatorInset = UIEdgeInsets.zero 

2.让tableviewcell的右侧出现箭头

1 cell!.accessoryType = .disclosureIndicator

3.设置cell不能点击

 1 cell?.selectionStyle = .none 

4.去除没有填入数据的cell

 1 self.tableFooterView = UIView(frame: CGRect.zero) 

猜你喜欢

转载自www.cnblogs.com/runningGY/p/11605758.html