How to Rotate a UIImage 90 degrees?

前端 未结 19 860
天涯浪人
天涯浪人 2020-11-22 08:45

I have a UIImage that is UIImageOrientationUp (portrait) that I would like to rotate counter-clockwise by 90 degrees (to landscape). I don\'t want

19条回答
  •  礼貌的吻别
    2020-11-22 09:02

    There is a extremely efficient UIImage category named NYXImagesKit. It uses vDSP, CoreImage and vImage to be as fast as possible. It has a UIImage+Rotating category that saved my day :)

    https://github.com/Nyx0uf/NYXImagesKit

提交回复
热议问题