空の画像だけを描画したい場合は、UIKit UIImageBeginImageContextWithOptions:メソッドを使用できます。
UIGraphicsBeginImageContext(CGSizeMake(width, height));
CGContextAddRect(UIGraphicsGetCurrentContext(), CGRectMake(0, 0, width, height)); // this may not be necessary
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
上記のコードは、幅x高さのサイズで画像を描画することを前提としています。グラフィックスコンテキストに長方形を追加しますが、必須ではない場合があります。自分で試してみてください。これが進むべき道です。:)
または、現在のビューのスナップショットを作成する場合は、次のようなコードを入力します。
UIGraphicsBeginImageContext(CGSizeMake(self.view.size.width, self.view.size.height));
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
レイヤーを使用する場合は、Quartzライブラリを含めることを忘れないでください。