Xcode 7 iOS 9 UITableViewCell Separator Inset issue

后端 未结 4 1195
情深已故
情深已故 2020-12-12 15:29

This is not a question, rather a solution to the problem I faced.

In Xcode 7, when the application is run on iOS 9 on iPad devices, the UITableViewCell

4条回答
  •  再見小時候
    2020-12-12 16:03

    iOS 9 and above:

    This is because of a new feature called readable content guides. It provides margins that are suitable for reading. So, on iPhone and portrait iPad they are very small margins. But in the landscape, iPad they are bigger. In iOS 9, UITableViewCell margins default to following the readable content guide.

    If you want to stop that, just set the tableView's cellLayoutMarginsFollowReadableWidth to NO/false.

    Source: https://forums.developer.apple.com/thread/5496

提交回复
热议问题