【问题标题】:UITableViewCell Indented in UITableViewUITableViewCell 在 UITableView 中缩进
【发布时间】:2022-09-24 04:05:01
【问题描述】:

UITableViewCell 自己缩进,即使我已经设置,

tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.layoutMargins = UIEdgeInsets.zero
tableView.contentInset = UIEdgeInsets.zero

    标签: swift uitableview


    【解决方案1】:

    我的视图控制器从垂直自动旋转到水平,因此会自动应用安全区域,因此您需要设置,

    tableView.insetsContentViewsToSafeArea = false。

    希望这可以节省您一些时间。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多