まあこれは私が自分のアプリケーションのいずれかで使用しているコードの一部であり、それはあなたのコードで動作するように、このために完全に
UIGraphicsBeginImageContext(someImageView.frame.size);
[someImageView.image drawInRect:someImageView.frame];
CGRect rect = CGRectMake(somex, somey, somewidth, someheight);
CGContextClearRect(UIGraphicsGetCurrentContext(), rect);
someImageView.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
作品は、あなたがImageViewのを作成する必要があります変数someimageview
をイメージビューに置き換えてください。
somex, somey, somewidth and someheight
の値を指定する必要があります。