How to set the full width of separator in UITableView

前端 未结 16 852
再見小時候
再見小時候 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:38

    For people having issues with the iPad — this will get you in a state that is the same as the iPhone. You can then adjust the separatorInset as needed.

    tableView.cellLayoutMarginsFollowReadableWidth = false
    

提交回复
热议问题