Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'useSplashScreen' is deprecated: Deprecated in Cordova 2.5 getting this warning in Xcode

I have Installed Cordova 2.5 and Was trying Hello World in project in Xcode and got this warning. Does any1 have any idea how to solve this warning.. Thanks

like image 802
MayurCM Avatar asked Mar 01 '13 10:03

MayurCM


3 Answers

You can comment out the line in AppDelegate.m (line 68 according to 2.5.0)

self.viewController.useSplashScreen = YES;

This should remove the warning on your next build.

like image 196
Cue Avatar answered Oct 20 '22 20:10

Cue


Splash screen control has now been split out into the Splashscreen plugin:

http://docs.phonegap.com/en/2.5.0/cordova_splashscreen_splashscreen.md.html#Splashscreen

(There's a full example of its use on that page)

like image 2
rmc47 Avatar answered Oct 20 '22 20:10

rmc47


In order to solve this issue, the only thing you have to do is comment the line in the AppDelegate.m, save the file and run the application again.

This was left uncommented for backward compatibilities.

The template comes already with the plugin included, you can check it in the plugins section of the config.xml file.

You can review more information on http://docs.phonegap.com/en/2.5.0/cordova_splashscreen_splashscreen.md.html#Splashscreen as rmc47 pointed out.

like image 1
rshadid Avatar answered Oct 20 '22 18:10

rshadid