且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在UITableView中调整原型单元格的左边距?

更新时间:2023-11-17 15:34:04

您只需要设置 contentInset 表视图的属性。您可以根据需要设置值。

You just need to set contentInset property of the table view. You can set value according to your need.

self.tableView.contentInset = UIEdgeInsetsMake(0,-15,0,0) ;

self.tableView.contentInset = UIEdgeInsetsMake(0, -15, 0, 0);

输出结果