こんにちは私はサンドボックスに保存されているいくつかの.png画像を描画し、UIViewにテキストを出力しようとしています。私のコードは次のとおりです。
-(void)setItemDetails:(ItemShow *)itmShow
{
if(theItem!=itmShow)
{
[theItem release];
theItem=itmShow;
[theItem retain];
}
UIImage *rImage=[UIImage imageNamed:@"years"];
[[UIColor blackColor] set];
[rImage drawInRect:CGRectMake(55.0, 22.0, 17.0, 17.0)];
[[UIColor brownColor] set];
[theItem.itemYear drawAtPoint:CGPointMake(7.0,19.0)
forWidth:100
withFont:[UIFont systemFontOfSize:17.0]
minFontSize:17.0
actualFontSize:NULL
lineBreakMode:UILineBreakModeTailTruncation
baselineAdjustment:UIBaselineAdjustmentAlignBaselines];
}
これは、viewDidLoadでこのメソッドを呼び出した後です。何も起こりません。UIViewのキャンバスに画像やテキストが表示されません。ここで何が問題になっていますか?