したがって、カスタム ラベルを作成して移動し、ユーザーが移動を完了したら、次を使用します。
CGSize size = image.size;
UIGraphicsBeginImageContextWithOptions( size, NO, 0);
CGContextRef context = UIGraphicsGetCurrentContext();
// UIImages and CGImageRefs are flipped
CGAffineTransform flipVertical = CGAffineTransformMake(1, 0, 0, -1, 0, size.height);
CGContextConcatCTM(context, flipVertical);
CGContextDrawImage(context, rect, [image CGImage]); // draw the image
// CGContextConcatCTM(context, flipVertical); uncomment if the text is flipped - not sure now
[label.text drawAtPoint:label.frame.origin withFont:label.font];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;