xcode 自定义 PhoneGap 斜线屏幕
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11274733/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Custom PhoneGap slash screen
提问by thomasf1
Is it possible to replace the splash screen for iOS and Android with a custom one?
是否可以用自定义屏幕替换 iOS 和 Android 的启动画面?
As far as I know there are 2 splash screens in iOS PhoneGap:
据我所知,iOS PhoneGap 中有 2 个启动画面:
- The "normal" iOS splash screen
- The PhoneGap splash screen (same image with a spinner)
- “正常”的 iOS 启动画面
- PhoneGap 启动画面(带有微调器的相同图像)
Would it be possible to:
是否可以:
- replace the "normal" iOS splash on runtime as it is possible with normal xCode Projects
- replace the "spinner" splash screen (I couldn′t figure out if that′s the phonegap-plugins / iPhone / SplashScreen code or not)
- 替换运行时的“正常”iOS 飞溅,因为它可以使用正常的 xCode 项目
- 替换“spinner”启动画面(我不知道这是否是 phonegap-plugins / iPhone / SplashScreen 代码)
It seems that the normal xCode ways of doing things get overwritten. I′m a bit confused by that as I′m new to PhoneGap.
似乎正常的 xCode 做事方式被覆盖了。我对此感到有些困惑,因为我是 PhoneGap 的新手。
回答by lucky520aki
yeah,you can do that.
是的,你可以这样做。
make your custom image in 640×960px(name:Default@2x~iphone.png) and 320×480px(name:Default~iphone.png)
go to[Name Your Project]/Resources/splash
replace them..
在 640×960px(name:Default@2x~iphone.png) 和 320×480px(name:Default~iphone.png) 中制作自定义图像
转到[命名您的项目]/资源/飞溅
更换它们..