IOS
何时成为大牛
屌丝程序员一枚
展开
-
CABasicAnimation-旋转
//旋转- (void)animationRotation{ //创建layer CALayer *layer =[CALayer layer]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.position = CGPointMake(100,100); layer.backgroundColor =原创 2017-02-04 14:38:12 · 792 阅读 · 0 评论 -
CABasicAnimation-平移
- (void)animationTranslate{ //创建layer CALayer *layer =[CALayer layer]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.position = CGPointMake(100,100); layer.backgroundColor = [UIC原创 2017-02-04 14:34:41 · 1361 阅读 · 0 评论 -
文章标题
//缩放- (void)animationScale{ CALayer *layer =[CALayer layer]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.position = CGPointMake(100,100); layer.backgroundColor = [UIColor yellowCo原创 2017-02-04 14:40:17 · 349 阅读 · 0 评论 -
CAKeyframeAnimation-关键帧动画
//关键帧动画 CAKeyframeAnimation- (void)keyAnimation{ CALayer *layer =[CALayer layer]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.position = CGPointMake(100,100); layer.backgroundColo原创 2017-02-04 14:43:10 · 491 阅读 · 0 评论