开发者

iOS 2D Transforms: Library to use

开发者 https://www.devze.com 2023-03-14 19:08 出处:网络
I have to perform some 2D transforms under iOS. I know that you can use the transform property of UIView to apply transforms so I am assuming that somewhere t开发者_开发百科here is some optimized code

I have to perform some 2D transforms under iOS. I know that you can use the transform property of UIView to apply transforms so I am assuming that somewhere t开发者_开发百科here is some optimized code that one could call on. However I'm also pretty sure that this stuff is on top of openGL so...

What could I use to do some simple transforms (fastly) on iOS? I just need to translate and rotate points.


Using CGAffineTransform one can build combined transformation matrices and then apply them to a CGPoint, CGSize or CGRect. See the documentation here especially Applying Affine Transformations

0

精彩评论

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

关注公众号