Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7497409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:05:30+00:00 2026-05-29T19:05:30+00:00

Please tell me can I use a time while application is loading (while splash

  • 0

Please tell me can I use a time while application is loading (while splash screen is being showed) to perform some background operations? (I need to call CLLocationManager and update current location) If I’m allowed to do it please tell me where to put a code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:05:33+00:00Added an answer on May 29, 2026 at 7:05 pm

    It is not possible to perform anything while real splash screen is shown.
    Your actions starts in

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
    

    method which is executed when splash screen removed.
    If you want to perform some time-cost operation before showing user interface, your only options is show manually “fake” splash screen during this time. It can be image or anything else e.g. activity indicator or animation. If you use same image that used for splash screen,
    user will see no difference, it will look like splash screen will remain some seconds longer for him, but you will already have your data loaded.

    In this case your app delegate may be like this:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.viewController = [[ViewController alloc] 
        initWithNibName:@"FakeSplashViewController" bundle:nil];
        self.window.rootViewController = self.viewController;
        [self performSelectorInBackground: @selector(someLongOperation) withObject: nil];
        [self.window makeKeyAndVisible];
        return YES;
    }
    
    - (void) someLongOperation{
        //doing something
        //...
        [self performSelectorOnMainThread:@selector(atLastLoadGUI) withObject:nil waitUntilDone:NO];
    }
    
    - (void) atLastLoadGUI{
        // start GUI
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you please tell me how can I use valgrind for memory profile? The
Can anyone please tell me when should I use MessageContracts and when should I
Can anybody please tell me what is the use of %NOTFOUND operator? We can
Can anyone please tell me is there any special requirement to use either EXTERN
Can someone please tell me where is the error in this code?, I use
Can any tell me that how many threads I can use in an application.
Please tell me how can I get array of all Those DIV of specific
Please tell me how can i activate the Sun JavaME memory monitor within eclipse
Can you please tell me how can I set a global #define in my
Could you please tell me how can one escape an apostrophe. I need it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.