If I try to insert
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
In the ViewDidLoad method it doesn’t appears during the splash screen. How can I implement the same thing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you’re talking about the initial splash screen (launch image) that you provide in the project properties: there is nothing you can do there yet, as your application is being loaded and not yet run.
The most early part where you could run your own code is in the
mainmethod although most functions will not work there as nothing is initialized yet. The earliest code point that is useful for this kind is- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptionsin your application delegate.In any case you should review if showing the network indicator is the right thing as it should only be shown when your code is doing network access.