UIRefreshControl() in iOS 11 Glitchy effect

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:24:26

问题


Every time I pull to refresh the TableView, the UIRefreshControl appears to be glitchy. Below is the code I am using. Any Ideas?

In AppDelegate:

UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().barTintColor = UIColor.red
UINavigationBar.appearance().tintColor = UIColor.white

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

回答1:


For me self.extendedLayoutIncludesOpaqueBars = YES fixed the issue.



来源:https://stackoverflow.com/questions/46526356/uirefreshcontrol-in-ios-11-glitchy-effect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!