I have created a UICollectionViewController custom class , and I inserted an UIImageView into the cell , then created an IBOutlet :
@property (weak , nonatomic) IBOutlet UIImageView *imageCell;

but when I compile the project , debugger gives me this error :

Thanks .
You need to create a custom class – the child of UIImageView. Something like MyCustomImageView and set it to the outlet’s class. And one more thing – you should better create an outlets with
strongmodifier. Also take a look at the link provided in comment to your question more information on your question