dimanche 28 décembre 2014

Full non-animating UIRefreshControl when dragging

I have the following code to add a UIRefreshControl to my UITableView:



refreshControl = [[UIRefreshControl alloc] init];
refreshControl.backgroundColor = [UIColor colorWithRed:242.0/255.0 green:243.0/255.0 blue:245.0/255.0 alpha:1.0];
[refreshControl addTarget:self
action:@selector(downloadLatestData)
forControlEvents:UIControlEventValueChanged];
[table addSubview:refreshControl];


And I call [refreshControl endRefreshing] once the UITableView has been reloaded.


This works fine until I navigate to another view and then return to refresh the data. My UIRefreshControl has a weird appearance when dragging down, but still is operational if the UITableView is pulled down enough. Here is a screenshot of my findings:


enter image description here


Any ideas? Thanks!




Aucun commentaire:

Enregistrer un commentaire