Search code examples
xcodeios6core-graphicscgaffinetransform

iOS Non Affine Transform


Is it posible to do a non-affine transform in Core graphics?

I want a perspective transform and can't seem to find any mention of something like it in the documentation.


Solution

  • Non-affine transforms are managed by Core Animation, not Core Graphics. See CATransform3D in the Core Animation Function Reference.

    In short, in order to apply perspective, you will generally need to move from UIView to CALayer.