iOS 11 Glitchy效果中的UIRefreshControl() [英] UIRefreshControl() in iOS 11 Glitchy effect
本文介绍了iOS 11 Glitchy效果中的UIRefreshControl()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次我刷新刷新TableView时,UIRefreshControl都会出现故障.下面是我正在使用的代码.有任何想法吗?
Every time I pull to refresh the TableView, the UIRefreshControl appears to be glitchy. Below is the code I am using. Any Ideas?
在AppDelegate中:
In AppDelegate:
UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().barTintColor = UIColor.red
UINavigationBar.appearance().tintColor = UIColor.white
在UITableViewController中:
In UITableViewController:
self.tableView.refreshControl = UIRefreshControl()
if #available(iOS 11.0, *) {
self.navigationController?.navigationBar.prefersLargeTitles = false
} else {
// Fallback on earlier versions
}
self.tableView.refreshControl = refreshCont
推荐答案
对我来说 self.extendedLayoutIncludesOpaqueBars = YES
解决了该问题.
For me self.extendedLayoutIncludesOpaqueBars = YES
fixed the issue.
这篇关于iOS 11 Glitchy效果中的UIRefreshControl()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文