显示随机启动画面
每次启动应用程序时是否可以启动不同的启动屏幕? 因为似乎启动画面必须命名为Default.png,所以似乎只能显示一个启动画面。
谢谢,
Is it possible to launch a different splash-screen each time I launch my app ?
Because it seems that the splash-screen HAS to be named Default.png, so it seems that only one splash-screen can be shown.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在这种情况下,最常见的是显示“品牌”公司启动屏幕,然后一旦执行进入您的应用程序 (
appDidFinish...
),就会显示一个带有您的自定义/更改/动画的辅助启动屏幕图像。In this case, it's most common to show a "branding" company splash screen, and then once the execution gets into your app (
appDidFinish…
) putting up a secondary splash screen with your customized/changing/animated image.这是不可能的。 Default.png 将始终显示(符号链接也不起作用)。
如果每次都显示不同的启动画面,也会让用户感到困惑。
This is not possible. Default.png will always be shown (symbolic links won't work either).
It would also be confusing to the user if a different splash screen is shown every time.
不,你不能这样做。请阅读此问题的答案 有什么方法可以在 iPhone 上以编程方式将图像保存为 default.png 吗?
NO you cannot do it. Please read the answer to this qestion Is there any way to save an image an default.png programmatically on the iphone?
您可以创建一个黑色的启动屏幕,然后在应用程序启动时显示一个随机的 UIImage xyz 秒。
You could create a black splash screen and then show a random UIImage for xyz seconds at the start of your app.