作者:恋若寒1999 | 来源:互联网 | 2023-01-15 19:04
每当我拉动刷新TableView时,UIRefreshControl似乎都是毛病.以下是我正在使用的代码.有任何想法吗?
在AppDelegate中:
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
pre..
17
对我来说self.extendedLayoutIncludesOpaqueBars = YES
解决了这个问题.
1> pre..:
对我来说self.extendedLayoutIncludesOpaqueBars = YES
解决了这个问题.