Search code examples
iphoneiosuiviewcontrolleruiapplicationdelegate

How to hide window screen and show screen after a time interval in iPhone?


I have a problem that in my app i don't want to show any type of screen and when application install on device but after 2 minutes i want to show a screen. I am using following code for this

   -(void)applicationDidFinishLaunching:(UIApplication *)application{


    // after 30 seconds it will show a view
    [self performSelector:@selector(show_view) withObject:nil afterDelay:30];
    [self.window makeKeyAndVisible];
}

But when i run app on device then it show a black screen for a moment and then show a white screen. And after 30 second of white screen it add new view on current window.

But i want that when it install on device then it will start a thread in background immediately and direct show last view. Don't show any other view or screen.

How to apply that in application?

Thanks in advance...


Solution

  • If you looking when the application is loading that time we can't handle that moment for that you need to use the one image put that place called the splash screen.

    You need to just one image which size is into iPhone is 320*460 image and give the name of the images is "Default.png". and put into resource folder.

    That's better solution for that.