开发者

Media Type Splash Screen in iPhone iOS

开发者 https://www.devze.com 2023-02-25 05:57 出处:网络
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

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)

i开发者_运维技巧s 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消