Unable to make view equal width to cell in iOS?

后端 未结 3 564
时光说笑
时光说笑 2020-12-19 17:35

I am making a custom cell in iOS.I have added prototype cell.I m trying to add a view inside a cell of equal width to parent cell.But the width of cell is not equal please t

3条回答
  •  清歌不尽
    2020-12-19 18:07

    You need to align view's (which is inside cell's content view) Leading, Trailing and Top to Cell's content view. This would be enough to make the view take the cell's width. (see screenshot)

    First Screen

提交回复
热议问题