iOS动画
文章平均质量分 70
幻想无极
IOS开发
展开
-
CABasicAnimation(基础属性动画)的简单使用
- (void)basicAnimation { //基础属性动画 //keyPath:属性键路径,通过路径的形式访问对象的指定属性 //1.平移 CABasicAnimation *positionAnimation = [CABasicAnimation animationWithKeyPath:@"position"]; positionAnimati原创 2015-01-25 19:50:59 · 1742 阅读 · 0 评论 -
CAAnimationGroup(动画组)的简单使用
CAAnimationGroup(动画组)的简单使用原创 2015-01-25 20:23:52 · 1027 阅读 · 0 评论 -
锚点的简单使用
- (void)button { UIButton *button = [[UIButton alloc]init]; button.bounds = CGRectMake(0, 0, 200, 200); button.center = self.view.center; button.backgroundColor = [UIColor grayColor];原创 2015-01-25 20:36:18 · 605 阅读 · 0 评论 -
CALayer的一些常用属性
UIButton *button = [[UIButton alloc]init]; button.bounds = CGRectMake(0, 0, 200, 200); button.center = self.view.center; button.backgroundColor = [UIColor grayColor]; [self.view addSub原创 2015-01-25 19:10:26 · 488 阅读 · 0 评论 -
CATransition(转场动画)的简单使用
//转场动画 CATransition *animation = [CATransition animation]; //持续时长 animation.duration = 0.5; //线性变化 animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTiming原创 2015-01-25 19:31:05 · 612 阅读 · 0 评论 -
CAKeyframeAnimation(关键帧动画)的简单使用
- (void)keyFramAnimation { //关键帧动画 CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"position.x"]; animation.duration = 0.3; //配置关键帧每一帧的值 animation.value原创 2015-01-25 20:08:20 · 739 阅读 · 0 评论