I have two questions with an activity indicator: 1. The activity indicator is not displayed on the UIViewController
I have an activity indicator added to a .xib file. When a button is pressed, it should start the animation. and when receiving a response from the server, before moving to the next page, it should stop the animation. I do it as follows:
activityIndicator.hidden = NO; [activityIndicator performSelector:@selector(startAnimating) withObject:nil afterDelay:0.1]; [self.view bringSubviewToFront:activityIndicator]; ....rest of code here.... activityIndicator.hidden = YES; [activityIndicator stopAnimating];
- Activity indicator not showing in UITableView
To represent the table, I do it the same way, but on didselectrowatindexpath ...
For tableview, I also tried to add an activity view to the cellular accessory, but still did not display
In both cases, the activity indicator is not displayed.
Please, help
thanks
source share