Xcode Playgound示例代码:

        let testView = UIView()
testView.frame = CGRect.init(x: , y: , width: , height: )
self.view.addSubview(testView)
testView.backgroundColor = UIColor.red var trans = CATransform3DIdentity
trans.m34 = -1.0 /
trans = CATransform3DRotate(trans, CGFloat.pi / , , , )
UIView.animate(withDuration: , animations: {
testView.layer.transform = trans
}) { (finish) in
UIView.animate(withDuration: , animations: {
testView.layer.transform = CATransform3DIdentity
})
}

Ficow原创,转载请注明出处:http://www.cnblogs.com/ficow/p/8227709.html

最新文章

  1. 读书笔记--SQL必知必会--Tips
  2. Spell-DBC
  3. 《JavaScript高级程序设计》学习笔记(4)——引用类型
  4. SQL Server 2008 修改表所有者,架构
  5. top命令结果参数注解
  6. CreateJSのeasel.js(一)
  7. Unity3D中Update和Lateupdate的区别
  8. MySQL索引的缺点以及MySQL索引在实际操作中有哪些事项
  9. 如何利用log4Net自定义属性配置功能记录完整的日志信息
  10. Table of Contents - Ehcache
  11. Android录音服务
  12. The 2014 ACMICPC Asia Regional Beijing Online
  13. Python--my first try!
  14. springboot(十九):使用Spring Boot Actuator监控应用
  15. POSIX 消息队列相关问题
  16. Qwt 编译 配置 使用
  17. JS_高程3.基本概念(1)
  18. 使用datepicker日期插件
  19. sql server 使用链接服务器连接Oracle,openquery查询数据
  20. BZOJ5289 HNOI/AHOI2018排列(贪心+堆)

热门文章

  1. 【Web前端】清除浮动&css中文字体
  2. 项目Alpha冲刺(团队8/10)
  3. redis中的五种基本的数据结构
  4. spark 33G表
  5. Codeforces Round #Pi (Div. 2) C. Geometric Progression
  6. ios很好的开源库
  7. import data from excel to sql server
  8. table中tr或者td的点击事件
  9. spring+mybatis 多数据源整合--temp
  10. centos查看CPU的数量