[英]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.