溶解动画iOS中单一视图 [英] Dissolve animation for single view in iOS

查看:215
本文介绍了溶解动画iOS中单一视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个观点和有一个 AVPlayer 在我需要的时候玩家是一个搜索动画溶解
从第一视频第二视频移动。

I have a view and on that there is a AVPlayer on that I need a dissolve animation when the player is
moving from the first video to second video.

推荐答案

我不知道你的UIView的结构,但你可以加载新的UIView / AVVideo和使用的UIView动画当前视图转换到第二个。

I don't know your UIView structure, but you can load the new UIView / AVVideo and use UIView animations to transform the current view to the second one.

// load new UIView
// make it invisible
[UIView animateWithDuration:1
                      delay:1.5
                    options:UIViewAnimationCurveEaseOut
                 animations:^{
                     // fade in, or change x/y to slide in
                 }
                 completion:^(BOOL finished){
                     NSLog(@"Done!");
                 }];

这篇关于溶解动画iOS中单一视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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