I have a custom UIView class. Inside it I have declared an IBOutlet property for UIImageView.
UIView
IBOutlet
UIImageView
#import
Override awakeFromNib in your view - this is the first lifecycle method to be called after the IBOutlets have been assigned and is the right place for your code.