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 there 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.