I've noticed a little bug (but really annoying) when I use UIRefreshControl
in my View Controller. When the application returns from the background the UIRefreshControl
is already loaded and it looks like this:
As you can see I use a custom navigation controller which hides like in the Facebook app (AMScrollingNavBar
). When I reload data in UITableView
everything comes back to normal and this bug shows only after returning from the background.
This is the code which I use to initialize UIRefreshControl
in viewDidLoad
:
// Initializing generic refresh control
self.refreshControl = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(collectData) forControlEvents:UIControlEventValueChanged];
[self.tableView addSubview:self.refreshControl];