In xcode 7.1, I have used the refresh control feature of a TableView. I have also used the following code to set an image to the background
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.png"]];
[tempImageView setFrame:self.tableView.frame];
self.tableView.backgroundView = tempImageView;
This image overlaps the activity indicator on the app so you can't see if its working. Is there a way to put the activity indicator back on top?
Thanks
Use this line
self.tableView.backgroundColor =
[UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]];
Instead of using
self.tableView.backgroundView = tempImageView;
Note: but your UIImage
size should be greater/equal to UITableView
size