[UICollectionViewCell imageCell]:无法识别的选择器发送到实例

Fab*_*oso 1 selector ios6 uicollectionviewcell

我用这个小小的东西读了所有的问题.FavoritosViewController.m我有:

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
favcolCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"fav" forIndexPath:indexPath];
[[cell imageCell]setImage:[UIImage imageNamed:[arrayimages objectAtIndex:indexPath.item]]];
return cell;
}
Run Code Online (Sandbox Code Playgroud)

在favcolCell.h我有:

@property (retain, nonatomic) IBOutlet UIImageView *imageCell;
Run Code Online (Sandbox Code Playgroud)

在favcolCell.m我有:

    @synthesize imageCell;
Run Code Online (Sandbox Code Playgroud)

(......)

- (void)dealloc {
    [imageCell release];
    [super dealloc];
}
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

编辑:

解决方案:做正确的课程注册.

Fab*_*oso 10

我错过了这个:

[self.collectionView registerClass:[FavoritosRestViewCell class] forCellWithReuseIdentifier:@"fav"];
Run Code Online (Sandbox Code Playgroud)

关于ViewDidLoad方法.我注册了错误的课程.感谢用户HotLicks.