iOS - Custom table cell not full width of UITableView

后端 未结 4 1796
误落风尘
误落风尘 2020-12-10 15:32

I may be going about this wrong. So I have created a UITableView that essentially has a auto-layout trailing space set to the main view. I am creating a custom cell for this

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 16:23

    Instead of "filling", auto layout constraints to leading and trailing space to constant 0 and make sure they're not relative to margins.

提交回复
热议问题