iOS Animated Splash Screen

2019-02-02 10:58发布

Is it possible to add an .fla file as splash screen in iOS development? If not what are the other formats of animated files does a splash screen accept? Does it accept animated gifs? or .swf files? or do i have to write the animation frame by frame.

If so what is the procedure? Do i have to add it the same way i add an image just have the extension differ?

I have an .fla file that i would like to add to my code. Unfortunately i couldn't find any material on whether this is feasible or not.

5条回答
SAY GOODBYE
2楼-- · 2019-02-02 11:26

It is relatively easy to create an animated splash screen. You need to create a compliant .mp4 file on and use the first frame of this movie as the launch image. Then instantiate a MPMoviePlayerController on app launch to play the movie in full screen. The movie will start a few moments after the launch image has been shown.

查看更多
beautiful°
3楼-- · 2019-02-02 11:31

You cannot display .fla files on iOS. Flash is not allowed as content in iOS. Also, splash screens can only be static graphics.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-02-02 11:42

An iOS splash screen is static. So it's just an image. But you can add your splashscreen and then just add a movie (.mov or other Apple format) just after your splashscreen disappears.

查看更多
霸刀☆藐视天下
5楼-- · 2019-02-02 11:47

Seems like people here doesn't know the difference between splash screen and launch image. Launch images are static, you configure them with xcode and you can't change them.

But in a splash screen you can do whatever you like, it's just a viewController where you show an animation, a video, or any other thing. You show the splass screen after the launch image and before your "landing page". Then, in a splash screen you can create an animation frame by frame, or load a .mp4 video in a MPMoviePlayerController as Krumelur said.

People using animated splash screens, usually use a launch image with the color of the splash screen (color of the first animation frame or the color of the video), so it seems that the launch image is part of the splass screen.

查看更多
Root(大扎)
6楼-- · 2019-02-02 11:50

Doesn't look like possible. You may want to have a look of following post dynamic splash screens

You have to write the animation frame by frame.

Another guide for animating splash screen Animation on splash screen

Hence you will have to show splash screen and then you may add any animation on view or add any movie(for example: .mov)

Hope this will help!!

查看更多
登录 后发表回答