Hi guys, I am having a problem with UIAcitivtyIndicatorView not showing up.
I have a tabbar application, in the first tab on clicking a record in a tableView, I am loading another ViewController:
Code:
[MyAppDelegate appDelegate].tabBarController.selectedViewController = [[MyAppDelegate appDelegate] SecondNavViewController];
In a viewWillAppear method of the SecondViewController, I have a function that takes some time to execute and I want to show my UIActivityIndicatorView (which is all created in AppDelegate) to the user like this:
Code:
- (void)viewWillAppear:(BOOL)animated
{
self.navigationItem.title = @"Home";
[[MyAppDelegate appDelegate] animateBusyPanelInView:self.view];
[self LoadData];
[[MyAppDelegate appDelegate] stopAnimatingBusyPanel];
/*rest of the code goes here*/
}
It works in other places in my app. but not in here. What am I doing wrong?
Thank you.