zsisme
ios核心动画高级技巧

Updated 3 years ago

CHANGXU ZHOU (@changxuzhou) started discussion #212

2 years ago · 0 comments

Open

    默认来说,anchorPoint位于图层的中点,所以图层的将会以这个点为中心放置。anchorPoint属性并没有被UIView接口暴露出来,这也是视图的position属性被叫做“center”的原因。但是图层的anchorPoint可以被移动,比如你可以把它置于图层frame的左上角,于是图层的内容将会向右下角的position方向移动(图3.3),而不是居中了。

锚点 (Edit this file)

position的坐标原点是左上角,而anchorPoint的坐标原点是右下角,这样才能解释。

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant