0
我有一個UICollectionView單元格,它試圖初始化一個自定義的子視圖但給我錯誤。初始化子視圖和異常
//In Init - (id)initWithFrame:(CGRect)frame
DetailSubView *view=[[DetailSubView alloc]initWithFrame:CGRectZero];
self.contentView=view;---> ERROR
//.h file
@property (strong, nonatomic) DetailSubView *contentView;
錯誤
[DetailCustomCell的setContentView:]:無法識別的選擇發送到實例0xe48a090
這是什麼方法? – David 2013-04-24 20:31:16
- (id)initWithFrame:(CGRect)frame – user1688346 2013-04-24 20:33:00