每次我拉动刷新 TableView 时,UIRefreshControl 都会出现故障。下面是我正在使用的代码。有任何想法吗?
在应用程序委托中:
UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().barTintColor = UIColor.red
UINavigationBar.appearance().tintColor = UIColor.white
在 UITableViewController 中:
self.tableView.refreshControl = UIRefreshControl()
if #available(iOS 11.0, *) {
self.navigationController?.navigationBar.prefersLargeTitles = false
} else {
// Fallback on earlier versions
}
self.tableView.refreshControl = refreshCont
For me self.extendedLayoutIncludesOpaqueBars = YES
解决了这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)