我有問題,我有基於xib的自定義單元格,我想在那裏顯示imageview。UIImageView in customCell
嘗試這樣:
UIImageView *flag1;
UIImageView *flag2;
和
@property (nonatomic, retain) IBOutlet UIImageView *flag1;
@property (nonatomic, retain) IBOutlet UIImageView *flag2;
在IB
連接它,這樣的:
cell.flag1 = [UIImage imageNamed:[rowData objectForKey:@"Flag1"]];
如何修復它得到它的工作?
感謝
連接源自何處?文件所有者,或者單元本身? – 2011-04-16 14:00:16