How to set the full width of separator in UITableView

前端 未结 16 849
再見小時候
再見小時候 2020-11-30 19:50

I have a UITableView where the separators don\'t have the full width. It ends like 10 pixels before the left side. I was playing around with this code in the

16条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 20:39

    In your UITableViewCell

    Go to Attributes Inspector in your Interface Builder and simply change "15" to 0. Do this for all the cells you wish to change.

    You may need to add [cell setLayoutMargins:UIEdgeInsetsZero]; to your tableViewCell

提交回复
热议问题