UITableViewCell Accessory is too wide on iPad

后端 未结 3 735
悲&欢浪女
悲&欢浪女 2021-02-12 11:13

I am having a problem with my UITableViewCell\'s appearance on the iPad. This problem arose sometime between iOS 7 and now, but I don\'t know for sure when it started. On an iPo

3条回答
  •  野性不改
    2021-02-12 12:02

    This is due to Apples new readable content margins in iOS9 intended to make content more readable in wider views (iPad Pro).

    You can turn this feature off by setting

    tableView.cellLayoutMarginsFollowReadableWidth = false
    

    in viewDidLoad

提交回复
热议问题