UIRefreshControl() in iOS 11 Glitchy effect

2019-04-05 12:11发布

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条回答
姐就是有狂的资本
2楼-- · 2019-04-05 12:33

For me self.extendedLayoutIncludesOpaqueBars = YES fixed the issue.

查看更多
登录 后发表回答