UIImageをその範囲内で再描画することにより、UIImageを反転/反射/回転する方法を知っています。
- (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の「フリップ/リフレクト」効果を作成するにはどうすればよいですか。できれば、UIViewの中心を以前と同じ位置に維持します。
ありがとうございました!