47.隐式动画
来源:互联网 发布:godaddy域名实名认证 编辑:程序博客网 时间:2024/05/18 03:17
1.隐式动画:每一个UIView内部都默认关联着一个CALayer,我们可用称这个Layer为Root Layer(根层)所有的非Root Layer,也就是手动创建的CALayer对象,都存在着隐式动画什么是隐式动画?当对非Root Layer的部分属性进行修改时,默认会自动产生一些动画效果而这些属性称为Animatable Properties(可动画属性) CALayer *layer = [CALayer layer]; layer.backgroundColor = [UIColor redColor].CGColor; layer.bounds = CGRectMake(0, 0, 100, 100); layer.anchorPoint = CGPointZero; [self.view.layer addSublayer:layer]; 隐式动画: // 隐式动画 self.layer.backgroundColor = [UIColor greenColor].CGColor; //self.layer.bounds = CGRectMake(0, 0, 200, 200); self.layer.position = CGPointMake(200, 200); // self.layer.position // 如何查看CALayer的某个属性是否支持隐式动画, 查看头文件是否有 Animatable关闭隐式动画: 关闭隐式动画 [CATransaction begin]; [CATransaction setDisableActions:YES]; // 隐式动画 self.layer.backgroundColor = [UIColor greenColor].CGColor; [CATransaction commit];
0 0
- 47.隐式动画
- 显示动画,隐式动画、关键帧动画
- 隐式动画和显式动画
- 隐式动画与显式动画
- iOS动画进阶(七)隐式动画
- 隐式动画
- IOS隐式动画
- 隐式动画
- IOS - 隐式动画
- 禁用隐式动画
- 隐式动画
- iOS 隐式动画
- CoreAnimation4-隐式动画和显式动画
- CALayer的隐式动画和显式动画
- CoreAnimation4-隐式动画和显式动画
- CoreAnimation4-隐式动画和显式动画
- iOS CALayer 隐式动画
- iOS CALayer隐式动画
- cocos2d-x lua 使用自定义消息EventCustom
- 最长上升子序列(LIS),求长度并打印子序列
- RGB颜色值与十六进制颜色码转换工具
- NYOJ 891贪心
- java中的一些网络知识
- 47.隐式动画
- github出现HTTP request failed
- 详解SESSION与COOKIE的区别
- NSIS学习笔记(二)-使用C++开发NSIS插件
- unity3d ngui-TweenRotation-TweenPosition-TweenScale
- poj 3276 Face The Right Way 关灯问题
- -1.#IND,1.#INF 的判断
- Error: Failed to launch instance "win7": Please try again later [Error: No valid host was found. ].
- 下载chromedriver