iPhone iOS 中的媒体类型启动屏幕
想为 iPhone 创建一个自定义启动画面,但我正在征求大家的意见。
据我了解,启动屏幕只是一个图像(Default.png),所以如果我想让启动屏幕更长,我能做的唯一方法就是创建一个图像然后将子视图添加到前面?然后创建一个计时器来调用从视图中删除图像的方法。
但后来我想创建一个媒体类型的启动屏幕,它将显示音频、视频等。所以问题是它会是什么样的流程。我想到的唯一方法是创建一个 ViewController,然后将其呈现在模式视图中。稍后我还将添加一个选项来检测用户的点击,如果点击,媒体将退出/隐藏/关闭假启动屏幕并显示主视图控制器。
现在我的思路是这样的:
AppDelegate --> RootViewController -->; SplashViewController(Modal View)
可以做成这样吗?
AppDelegate --> SplashViewController --> RootViewController
应用程序启动时是否有其他方式显示媒体?
任何答案都很感激,提前谢谢您。
Wanna create a custom splash screen for the iPhone, but Im asking for opinion from all of you.
For what I understand, the splash screen is only a image (Default.png), so if I want to make the splash screen longer, the only way I can do is create a image then add the subview to the front? Then create a timer to call a method to remove the image from the view.
But then I want to create a media type splash screen, which will show audio, video and etc. So the question is what flow will it look like. The only way I think of is create a ViewController, then present it in a modal view. Later I also will add in an option to detect a tap from user, if tapped then the media will quit/hide/dismiss the fake splash screen and present the main view controller.
For now the flow of my thinking is like this:
AppDelegate --> RootViewController --> SplashViewController(Modal View)
is it possible to make it like this?
AppDelegate --> SplashViewController --> RootViewController
Is there any other way to show the media when the app start?
Any answer is appreciate, thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将导航控制器的根视图控制器设置为启动屏幕。
然后就不允许用户导航到那么低的位置。
计时器到期后,将动画推到导航上:NO,您的启动屏幕将被替换。
或者,您可以添加启动画面……当计时器到期时,您可以告诉启动画面从其父视图中删除自身,然后添加根控制器。
set the root view controller of your navigation controller to Be your splash screen.
Then just dont allow the user to navigate that low.
after the timer lapses, push onto the nav with animation:NO and your splash screen will be replaced.
Alternatively you can add your splash.. and when the timer lapses, you tell the splash screen to remove itself from its parent view, then add your root controller.