不是翻转UIImageView,而是UIImage,适用于源图处理。
就一句代码:
[UIImage imageWithCGImage:srcImage.CGImage scale:1.0 orientation:UIImageOrientationRight];
这个例子是向右(顺时针)转90度,最后一个参数是是枚举类型,指明图像如何翻转。
但此方法不能按任意角度翻转,只能90度一个跨度,和指定镜面效果。
不是翻转UIImageView,而是UIImage,适用于源图处理。
就一句代码:
[UIImage imageWithCGImage:srcImage.CGImage scale:1.0 orientation:UIImageOrientationRight];
但此方法不能按任意角度翻转,只能90度一个跨度,和指定镜面效果。