我用这个标题阅读了所有问题。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;
}
在 favcolCell.h 我有:
@property (retain, nonatomic) IBOutlet UIImageView *imageCell;
在 favcolCell.m 我有:
@synthesize imageCell;
(...)
- (void)dealloc {
[imageCell release];
[super dealloc];
}
我错过了什么?
编辑:
解决方案:进行正确的班级注册。