CATransition *transiton = [CATransition animation];
transiton.duration = 0.5;
//设置动画的加速方式
transiton.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault];
//动画效果
transiton.type = kCATransitionPush;
//具体效果
transiton.subtype = kCATransitionFromRight;
[self.view.layer addAnimation:transiton forKey:nil];
CATransition动画的简单使用
最新推荐文章于 2016-08-01 16:20:20 发布