0

UITableViewCell 左边有空白的间隙怎么去掉?

mabel created at6 years ago view count: 262
report
回复
0
self.tableView.contentInset = UIEdgeInsetsMake(0, -15, 0, 0);
6 years ago 回复
0

打开Main.storyboard > select the UITableViewCell > Attributes Inspector>Separator>Custom 然后设置把left由15设置为0, 当然也可以设置 UITableView的该项,改变所有Cell的宽度。

6 years ago 回复

相关搜索关键词