Belirli bir resimle bir UIImageView içinde bazı daireler çizmeye çalışıyorum.Bir UIImageView IOS biçiminde çizim Çizim
UIGraphicsBeginImageContext(self.view.bounds.size);
CGContextRef contextRef = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(contextRef, 2.0);
CGContextSetStrokeColorWithColor(contextRef, [color CGColor]);
CGRect circlePoint = (CGRectMake(coordsFinal.x, coordsFinal.y, 50.0, 50.0));
CGContextStrokeEllipseInRect(contextRef, circlePoint);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[photoView addSubview:image];
daire ince çizilir ama PhotoView'un buna bir maske olarak hareket etmek istiyorum: Bu benim yapmaya çalıştığım budur. Öyleyse UIImageView'i UIView'den bir animasyon kullanarak hareket ettirirseniz, dairenin onunla birlikte hareket etmesini isterim. Önemli olan koordinatların tüm ekrana göreli olmasıdır.
Özel UIView veya türetilmiş özel bir UIImageView bana benziyor. – trumpetlicks