iPhone iOS como virar / refletir qualquer UIView no local?
Eu sei como virar / refletir / girar um UIImage re-desenhando dentro de seus limites.
- (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();
}
Mas como eu crio um efeito "flip / reflect" para qualquer UIView, de preferência mantendo o centro na mesma posição de antes?
Obrigado!