I am using storyboard with IOS 5.
I need to load a loading view pop up in viewdidload because of heavy image processing.
It is not bringing up the loading view. I tried this code below on different places and it worked. Just not on viewdidload.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notify_action_finish:) name:@"StopLoadingView" object:nil];
loadingView =[tfbLoadingView loadingViewInView:[self.view.window.subviews objectAtIndex:0]];
Thanks in advance.
As Eric says in his comment, use MBProgressHud for loading view..
Add the HUD as a subview of the window.
Add the following delegate method:
Also dont forget to add
MBProgressHUDDelegatein the corresponding header file.