I currently starting the activity indicator before pushing another view controller but it is not start animating the activity indicator.
[activityindicator startanimating];
[self.navigationcontroller pushviewcontroller:viewcontroller animated:YES];
[activityindicator stopanimating];
Create a NSThread as call a selector as follows :
threadStartAnimating :
You need to use a performSelectorInBackground or something. Because you use the calls in 1 method, the UI doesn't get the chance to update therefor you do not see the activityindicator.
So for your case:
then create a method like:
You could use a sleep or something (like sleep(1)) to show the activityindicator because just showing them when you push a view won't do it, because its done in no-time...
Hope this helps!
Try this code: