我有一个 UICollectionView Cell 尝试初始化自定义子视图但给我错误。
//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