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
stkent
  • 19,772
  • 14
  • 85
  • 111
lePapa
  • 357
  • 2
  • 11

1 Answers1

21

For me self.extendedLayoutIncludesOpaqueBars = YES fixed the issue.

pre
  • 3,475
  • 2
  • 28
  • 43