![](/img/trans.png)
[英]iOS - static cells not appearing in a subclass of UITableViewController
[英]iOS 11 20 points gap over tableview in UITableViewController with static cells
这是由于iOS 11中引入了新属性。请尝试以下操作:
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never
} else {
automaticallyAdjustsScrollViewInsets = false
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.