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 ...
https://www.czetsuyatech.com/2011/01/xcode-static-splash-screen.html
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);
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]; }
3 comments
Hello Jay, It should be Default.png (not .jpg)
peace :)
Winux
Hi Erwin,
Yes it should be .png.
Thanks for the correction :-D.
And btw it's Edward
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
Post a Comment