In my UIViewController view I take
- A tab bar
- Tab bar button
- Table view
- Button
- UIActivityIndicatorView
When I press a button that time I reload the table data and that time I want to show an indicator but when table is reloaded that time indicator not working .
When I press the button I properly start the indicator [indicator startAnimating]; but it’s not working.
I thing I forgot some thing.
It’s also possible that you added it the view before adding the tableview, and thus the tableview is on top of it, obscuring it. Make sure you add the indicator to the view after adding the uitableview.
If you did all this in IB, then in your view controller, in the viewDidLoad method, add this line:
You might also consider – just to get going again – using the status bar activity indicator.