在 xcode 中添加启动画面的示例代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6174861/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:09:07  来源:igfitidea点击:

Sample code for adding Splash screen in xcode

iphonecocoa-touchxcodeipadsplash-screen

提问by Christina

Can anyone provide me a sample code for adding a splash screen to an existing Xcode project. What is the better way to add a splash screen? I mean is it using model view controller or just adding the image in resource folder. And if I want to play any movie on the splash screen then how can I do it?

任何人都可以向我提供用于向现有 Xcode 项目添加启动画面的示例代码。添加启动画面的更好方法是什么?我的意思是它是使用模型视图控制器还是只是在资源文件夹中添加图像。如果我想在启动画面上播放任何电影,我该怎么做?

回答by Tariq

You are looking for Splash screen of video type right?

您正在寻找视频类型的启动画面,对吗?

Go through these source code steps.

完成这些源代码步骤。

http://iphonedevcentral.blogspot.com/2010/08/display-iphone-movies-in-portrait-mode.html

http://iphonedevcentral.blogspot.com/2010/08/display-iphone-movies-in-portrait-mode.html

Write your own Utility Class. And on Video Done clicked show your home screen

编写您自己的实用程序类。并在视频完成点击显示您的主屏幕

Code: http://iosdevelopertips.com/wp-content/uploads/2010/07/MoviePlayer-Portrait-Mode-ios4.zip

代码:http: //iosdevelopertips.com/wp-content/uploads/2010/07/MoviePlayer-Portrait-Mode-ios4.zip