iPhone iOS ¿cómo voltear / reflejar cualquier UIView en el lugar?
Sé cómo voltear / reflejar / rotar un UIImage volviéndolo a dibujar dentro de sus límites.
- (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();
}
Pero, ¿cómo creo un efecto "flip / reflect" para cualquier vista UIV, preferiblemente manteniendo su centro en la misma posición que antes?
¡Gracias!