Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

How to make a static splash screen in iphone using xcode

By default an xcode project created for iPhone looks for Default.jpg image in the resources. So all you need to do is:

1.) Make sure that you have a "Default.jpg" image in your Resources project folder

2.) In the class file that extends UIApplicationDelegate, look at the .m file and find the method: applicationDidFinishLaunching. Add the line sleep(n);
- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    sleep(2);
    // Override point for customization after app launch    
    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
}
How to make a static splash screen in iphone using xcode How to make a static splash screen in iphone using xcode Reviewed by Edward Legaspi on Monday, January 03, 2011 Rating: 5

3 comments:

Erwin said...

Hello Jay, It should be Default.png (not .jpg)

peace :)

Winux

czetsuya said...

Hi Erwin,

Yes it should be .png.

Thanks for the correction :-D.

And btw it's Edward

tom said...

yeah its .png as previosuly said but also the code doesnt like ti in the latest version of xcode.

the addSubview.viewcontroller isnt recognised it points you to addSubview.UIviewcontroller instead and it doesnt like the .view element.

I think this was ok on earlier releases of xcode but not any use any longer

Powered by Blogger.