阅读背景:

对于锚点和position的理解

来源:互联网 

每一个UIView内部都默认关联着一个CALayer, UIView有frame、bounds和center三个属性,CALayer也有类似的属性,分别为frame、bounds、position、anchorPoint。frame和bounds比较好理解,bounds可以视为x坐标和y坐标都为0的frame,那position、anchorPoint是什么呢?先看看两者的原型,可知都是CGPoint点。 每一个UIView内部都默认关联着一个CALayer, UIView有frame、b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: