从启动图像平滑过渡到主视图 [英] Smooth transition from launch image to main view

查看:116
本文介绍了从启动图像平滑过渡到主视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当应用加载时,是否可以实现从启动图像到第一个视图的平滑过渡?

Is it possible to implement a smooth transition when the app loads, from the launch image to the first view?

默认行为是打开/关闭,带有立即更改:启动图像出现,然后它立即消失,让主视图控制器发生。我想实现一些淡入淡出或放大或缩小。

The default behavior is on/off, with an immediate change: the launch image appears, then it instantaneously disappears to let the main view controller take place. I'd like to implement some fading or zooming in or out.

这可能吗?

谢谢!

推荐答案

没有框架支持,但如果您自己手动执行,则可以获得该结果。根据您的启动图像以及您的UI的样子,您可以采用不同的方式进行操作,但基本上是:在加载时,使第一个视图控制器加载并在图像视图中显示default.png图像。然后设置淡出该图像的动画以显示您的实际UI。

There's no framework support, but you can get that result if you do it yourself, manually. Depending on what your launch image is, and what your UI looks like, you can do it in different ways, but basically: make your first view controller load and display your default.png image in an image view when it loads up. Then animate a fade out of that image to reveal your actual UI.

这篇关于从启动图像平滑过渡到主视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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