`

anchorPoint与position

 
阅读更多

anchorPoint:

(0,0) 坐标原点;(1,1)坐标对角点,默认值为(0.5,0.5)

iOS使用左手坐标系,坐标原点在左上角,MacOS使用右手坐标系,原点在左下角

 

Position: 

position是layer中的anchorPoint点在superLayer中的位置坐标

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics