[CATransaction flush] 作用详解
来源:互联网 发布:电陶炉和电磁炉 知乎 编辑:程序博客网 时间:2024/06/08 17:35
众所周知,CATransaction 是核心动画类中的事务类,负责将图层树的修改作为原子更新到渲染树.其分为隐式事务和显式事务.我们平时所做的针对layer层的操作都是隐式事务,
如self.view.layer.backgroundColor = [UIColorredColor].CGColor;
显式事务为运用begin ,commit方法创建使用.显式事务在同时设置多个图层的属性的时候(例如当布局多个图层的时候),暂时的禁用图层的行为,或者暂时修改动画的时间的时候非常有用 .
而[CATransaction flush]的使用则是对事务的处理安排.文档是这样解释flush方法的
/* Commits any extant implicit transaction. Will delay the actual commit
* until any nested explicit transactions have completed. */
翻译过来就是:提交任何现存隐式事务,直到所有嵌套的显式事务完成提交实际效果,其本质作用是对事务的处理安排..这可以在lldb调试中方便调用. 0 0
- [CATransaction flush] 作用详解
- CATransaction
- CATransaction
- iOS Animation CATransaction事务 详解
- Response.Flush()的作用
- session.flush()的作用
- flush privileges作用
- hibernate4 session.flush()的作用
- java flush()函数的作用
- PHP flush 测试详解
- Hibernate flush详解
- CoreAnimation-CATransaction
- Hibernate的flush机制详解
- alter system flush shared_pool的作用
- alter system flush shared_pool的作用 .
- [日记]alter system flush shared_pool的作用
- JSP:include的flush属性的作用
- JSP:include的flush属性的作用
- 关于浏览器Ajax请求Type为Request Payload而不是Form Data
- 聚集索引mysql
- ubuntu jdk1.7 环境配置脚本
- 背包问题整理
- 字符串方法总结
- [CATransaction flush] 作用详解
- Cocos2d-js HTTP学习笔记
- 市面常见存储卡的读写速度对比测试
- Docker学习文档之一 安装软件-Windows环境
- AsyncTask的分析与运用
- Linux学习篇之~unit10
- node.js 之express入门学习
- mysql中左连接,右连接,内连接查询,以及与where之间关系
- Linux2.6.32 PCB内tast_struct的简述