iOS - Custom table cell not full width of UITableView

后端 未结 4 1800
误落风尘
误落风尘 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:07

    Can you post the code please .

    Did you enable the Use Auto layout and Use Size Classes as below do that first in both table view and table view cell .and tell me your problem

    enter image description here

    1)After that select both image and label and do as below

    enter image description here

    2) Select the image and do below

    enter image description here

    3) select the label an do the following

    enter image description here

    Can you check the link below:

    Table cell content(title) moving left after selecting cell

提交回复
热议问题