UIImage'ı, sınırları dahilinde yeniden çizerek nasıl çevireceğinizi/yansıtacağınızı/döndüreceğinizi biliyorum.iPhone iOS herhangi bir UIView'i yerinde nasıl çevirebilir/yansıtabilir?
- (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();
}
Ama nasıl, herhangi UIView için bir "çevirme/yansıtmak" etkisi yaratmak do tercihen daha önce olduğu gibi aynı konumda merkezi olduğunu tutarak?
Teşekkür ederiz!
Sorunuz, görüntünün nasıl döndürüleceğiyle ilgili cevabım: P teşekkürler +1 –