【发布时间】:2022-09-24 04:05:01
【问题描述】:
UITableViewCell 自己缩进,即使我已经设置,
tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.layoutMargins = UIEdgeInsets.zero
tableView.contentInset = UIEdgeInsets.zero
标签: swift uitableview
UITableViewCell 自己缩进,即使我已经设置,
tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.layoutMargins = UIEdgeInsets.zero
tableView.contentInset = UIEdgeInsets.zero
标签: swift uitableview
我的视图控制器从垂直自动旋转到水平,因此会自动应用安全区域,因此您需要设置,
tableView.insetsContentViewsToSafeArea = false。
希望这可以节省您一些时间。
【讨论】: