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.
精彩评论