UIRefreshControl stops spinning after application state changing
| Originator: | beruashvili | ||
| Number: | rdar://16183834 | Date Originated: | 27-Feb-2014 02:29 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS 7+ |
| Classification: | UI/Usability | Reproducible: | Always |
I have noticed that when you start UIRefreshControl-s beginRefreshing ,
if you go to another view or press home button and then come back to this view , UIRefreshControl is not spinning anymore , its property says that its refreshing ( isRefreshing returns YES ) and if I try to call again beginRefreshing nothing changes
THIS IS HAPPENING ONLY ON iOS7+
Steps to Reproduce:
1. Create tableview with UIRefreshControl
2. Pull to refresh
3. Go to another view or Press Home button
4. Come back to the view which has UIRefreshControl
Expected Results:
UIRefreshControl should still animate ( spin )
( animates on iOS 6 )
Actual Results:
UIRefreshControl is stopped and not animating ( visible though )
Workaround:
manually stopping and re-animating conrol
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
if(self.refreshControl.isRefreshing) {
CGPoint offset = self.tableView.contentOffset;
[self.refreshControl endRefreshing];
[self.refreshControl beginRefreshing];
self.tableView.contentOffset = offset;
}
}
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!