Я знаю, как отразить/отразить/повернуть 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, предпочтительно сохраняя его центр в том же положении, что и раньше?
Спасибо!