I try to use the UIRefreshControl with swift 1.2 and works fine except the UI. It is jumping and I dont know why. Here is what I am doing:
class ViewControll
I have experienced this problem and I believe it is because the UIRefreshControl was meant for UITableViewController.
I think you should try to insert the view at index 0 like below. (Excuse the objective-c)
[self.tableView insertSubview:_refreshControl atIndex:0];
Edit
Do you have code to stop the refreshControl?
// End Refreshing
if ([self.refreshControl isRefreshing]) {
float delayInSeconds = 1.0;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^{
[self.refreshControl endRefreshing];
});
}