如何使启动画面在 xCode 项目中持续更长时间?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12070219/
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
How make the splash screen last longer in a xCode project?
提问by Amar Syla
Possible Duplicate:
Displaying splash screen for longer than default seconds
可能的重复:
显示启动画面的时间超过默认秒数
I am developing a simple game from an open source xcode project.
我正在从开源 xcode 项目开发一个简单的游戏。
I am a complete beginner in xcode, and I don't know anything.
我是一个完整的 xcode 初学者,我什么都不知道。
The splash screen lasts while the game is loading, but the game is so simple that the splash sscreen stays on the screen about half a second.
闪屏在游戏加载时持续,但游戏非常简单,闪屏在屏幕上停留了大约半秒。
I don't want that, I would like it to stay for about 5 seconds.
我不想那样,我希望它停留大约 5 秒钟。
Thanks.
谢谢。
回答by rckoenes
You should no delay the splash screen, since it's not splash screen. it's place holder for the app while is it loading.
你不应该延迟启动画面,因为它不是启动画面。它是应用程序加载时的占位符。
If you read the Apple HIGyou will read that delaying it is not allowed.
如果您阅读Apple HIG,您会了解到不允许延迟。
If you think that following these guidelines will result in a plain, boring launch image, you're right. Remember, the launch image is not meant to provide an opportunity for artistic expression; it is solely intended to enhance the user's perception of your app as quick to launch and immediately ready for use.
如果您认为遵循这些指导方针会导致发布图像平淡乏味,那么您是对的。请记住,发布图片并不是为了提供艺术表达的机会;它只是为了增强用户对您的应用程序的感知,因为您的应用程序可以快速启动并立即可供使用。
回答by Guru
Render same loading screen from code at launch till ur loading completes.
在启动时从代码呈现相同的加载屏幕,直到您的加载完成。
回答by Totumus Maximus
Duplicate of: Displaying splash screen for longer than default seconds
You don't need the splashscreen to last longer. You need to make a UIViewController which shows the splashscreen a little longer. You can also show the user what your app is doing (the loading stuff) then, which fits better in the Apple way of thinking.
您不需要启动画面持续更长时间。您需要制作一个 UIViewController 来显示启动画面的时间更长一些。您还可以向用户展示您的应用程序正在做什么(加载内容),这更符合 Apple 的思维方式。