UIImage를 그 경계 내에서 다시 그리는 방법으로 뒤집기/반사/회전하는 법을 알고 있습니다.iPhone iOS UIView를 플립/반사하는 법은 무엇입니까?
- (IBAction)reflectImageView:(UIImageView)imageView {
UIGraphicsBeginImageContextWithOptions(imageView.bounds.size, NO, 0.0);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextScaleCTM(context, 1.0, -1.0);
CGContextTranslateCTM(context, 0.0, -imageView.bounds.size.height);
[imageView.layer renderInContext:context];
imageView.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
하지만 어떻게 내가 어떤 UIView의에 대해 "플립/반영"효과를 만들려면 어떻게해야합니까는 바람직하게는 이전과 같은 위치에있는 센터의 유지?
감사합니다.
질문은 이미지를 회전하는 방법에 대한 내 대답입니다. P +1 +1 –