我们如何在iOS应用中添加视频而不是启动图像? [英] How can we add a video instead of launch image in an iOS app?

查看:163
本文介绍了我们如何在iOS应用中添加视频而不是启动图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用启动时添加一个简短的视频,而不是在iOS中启动图像.

I want to add a short video when my app launches instead of launch image in iOS.

我尝试将其添加到我的初始UIViewControllerviewDidAppear:方法中,但是在显示视频之前它仍然显示空白屏幕.

I have tried adding it in the viewDidAppear: method of my initial UIViewController, but still it shows a blank screen before it displays the video.

推荐答案

您不能添加启动视频而不是启动图像,但是,初始视图控制器可以显示启动视频,该视频从与默认图像相同的图像开始(启动)图片...

You can not add a launch video instead of a launch image, but, your initial view controller can present a launch video which starts from the same image as your default (launch) image...

无论如何,您都应包括默认(启动)图像,因为该图像是在应用加载时(因此在准备播放视频之前)显示的.

In any case, you should include the default (launch) image as it is displayed while the app is loading (and thus before the video is ready to be played).

这篇关于我们如何在iOS应用中添加视频而不是启动图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆