UIView rotation center

Is there a copy of the CALayer anchorPoint for UIView?

I would like to rotate my UIView around a point other than the center of the borders.

Thanks.

+3
source share
2 answers

To keep track of what Daniel said, according to the UIView Documentation :

The origin of the transformation is the value of the center property or the anchorPoint property of the layers, if this has changed. (Use the layer property to get the basic animation of the core layer.)

Therefore, if you set anchorPoint at the UIView level, transformations applied directly to the UIView will occur around this point.

+8
source

, , U'll , .

0

Source: https://habr.com/ru/post/1714275/


All Articles