【发布时间】:2011-08-22 23:47:19
【问题描述】:
我目前在我的 UITableViewCell 中设置 UIImageView,如下所示:
// in cellForRowAtIndexPath method
[cell.imageView initWithImage:[UIImage imageNamed:@"myImage.png"]];
但是 UITableViewCell 上的 imageView 属性是readonly。上面的代码有效,但我不明白为什么。 有什么想法?
【问题讨论】:
标签: ios uitableview properties uiimageview uiimage