anchorPoint与position

anchorPoint:

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

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

Position: 

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

猜你喜欢

转载自sech.iteye.com/blog/2256414