开发者

getting view current rotation

开发者 https://www.devze.com 2023-03-26 21:20 出处:网络
is there a way to extract rotation information (only , without scale/translation) info from a CGAffineTransform ?

is there a way to extract rotation information (only , without scale/translation) info from a CGAffineTransform ?

开发者_StackOverflowI would like to apply the rotation to another object, but without setting translation/scale.


I don't think you can extract the values used in a function and reference them directly in some other function.

What you can do is define a CGFloat angle struct outside any of the functions and just reuse it whenever you need the same value for a rotation transform.

0

精彩评论

暂无评论...
验证码 换一张
取 消