使用显式动画,如果设置layer 的bounds和frame效果是不一样的
如果设置
self.layer.bounds = CGRectMake(0, 0, width, width);
效果如图
如果设置
self.layer.frame = CGRectMake(0, 0, width, width);
效果如图
本文共 209 字,大约阅读时间需要 1 分钟。
使用显式动画,如果设置layer 的bounds和frame效果是不一样的
如果设置
self.layer.bounds = CGRectMake(0, 0, width, width);
效果如图
如果设置
self.layer.frame = CGRectMake(0, 0, width, width);
效果如图
转载于:https://www.cnblogs.com/adodo/p/5241116.html