摘要: 隐式事务任何对于CALayer属性的修改,都是隐式事务,都会有动画效果.这样的事务会在run-loop中被提交.- (void)viewDidLoad { //初始化一个layer,添加到主视图 layer=[CALayer layer]; layer.bounds = CGRec... 阅读全文
posted @ 2015-10-15 13:55 学计算机的那个 阅读(220) 评论(0) 推荐(0)
摘要: 简易动画大致有2种方式: 头尾式 [UIView beginAnimations:nil context:nil]; /** 需要执行动画的代码 **/ [UIView commitAnimations]; Block式 [UIView animateWithDuration:0.5 animati 阅读全文
posted @ 2015-10-15 10:44 学计算机的那个 阅读(225) 评论(0) 推荐(0)