开发者

iphone - a different name for Default.png

I am creating this new version of one of my app开发者_如何转开发s and this new version has a new interface. As I am on the testing phase, I am building the app using a different target on Xcode I wonder if there's a way to tell the target to use another file name for the loading image, instead of just "Default.png"?

Don't tell me it is not possible... :(

Thanks


It is actually very simple. In the Info.plist file for your new target, add the UILaunchImageFile key and set it to the basename of your file. Then, include your new default image instead of Default.png in your build process. If you want more information, go to http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BuildTimeConfiguration/BuildTimeConfiguration.html. The section on launch images is about halfway down the page.


You can have multiple files named Default.png, each in a separate subdirectory, and include them all in one Project. Then, for each Target in the Project, click the include checkbox for just the one Default.png file you want included in the build for that Target, and uncheck any other's if necessary. If you make any changes, do a Clean before you Build.


As far as I am aware, not possible. A work around would be to start with no and/or a black Default.png and add your own UIImageView in applicationDidFinishLoading:.

Not ideal but might help for what you are trying to do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜