にUIImage描きたい がありUIViewます。しかし、作成してこれをサブビューとして追加する代わりに、UIView を直接UIImageView上書きして描画したいと考えています。-drawRect:
たとえば、私のコードは次のようになります。
- (void)drawRect:(CGRect)rect {
CGContextRef myContext = UIGraphicsGetCurrentContext();
UIImage *img = [UIImage imageNamed:@"foo.png"];
// how to draw the directly into the view now?
}