ios UIView 动画效果
来源:互联网 发布:业务软件 编辑:程序博客网 时间:2024/05/13 01:49
用UIViewAnimation实现动画,代码如下:
[UIView beginAnimations:@"animationID" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView: scrollView cache:YES];
//还有这几种动画 : UIViewAnimationTransitionFlipFromLeft,UIViewAnimationTransitionCurlUp,UIViewAnimationTransitionCurlDown
[scrollView bringSubviewToFront:[scrollView viewWithTag:selectedIndex]];[UIView commitAnimations];
用CATransition实现动画,代码如下:
CATransition *animation = [CATransition animation];
animation.duration = 1.0;
animation.timingFunction = UIViewAnimationCurveEaseInOut;
animation.fillMode = kCAFillModeForwards;
animation.type = kCATransitionMoveIn;//还有这几种动画:kCATransitionPush,kCATransitionReveal,kCATransitionFade
animation.subtype = kCATransitionFromRight;//移动方向
[self.view.layer addAnimation:animation forKey:@"animation"];
- ios UIView 动画效果
- iOS UIView动画效果
- ios uiview的动画效果
- iOS UIView动画 效果详解
- iOS 中用UIView来实现动画效果
- iOS UIView animation动画效果 (1)
- iOS UIView简单的缩放动画效果
- iOS动画--UIView自带动画效果、Block动画
- 【IOS动画】UIView放大缩小背景淡入淡出动画效果
- iOS动画 UIView动画
- iOS 动画 UIView动画
- UIView 动画效果
- UIView实现动画效果
- UIView动画移动效果
- UIView动画效果
- UIView动画(过渡效果)
- UIView实现动画效果
- UIView动画效果
- Java集合框架面试问题集锦
- 基于Asp.net C#实现HTML转图片(网页快照)
- 杀死锁
- 23种设计模式之迭代模式2
- 仓库知识大全
- ios UIView 动画效果
- A*B Problem
- 一剪梅(一片春愁待酒浇)宋(蒋捷)
- Redis根据index删除List中的元素
- SQLServer本地重装提示已安装的解决办法
- 研究图形图像方向的人不得不知道的常识之 ——数字图形图像存储格式
- 《火炬2》主创谈游戏运营、游戏理念
- 种一片自然
- MySql的flush用法