Sé cómo voltear/reflejar/rotar un UIImage volviéndolo a dibujar dentro de sus límites.iPhone iOS ¿cómo voltear/reflejar cualquier UIView en el lugar?
- (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 se crea un efecto "flip/reflejar" para cualquier UIView, preferentemente manteniendo su centro en la misma posición que antes?
¡Gracias!
su pregunta es mi respuesta sobre cómo rotar la imagen: P gracias +1 –