开发者

getting view current rotation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜