You may have downloaded your UIImage using this method:
UIImage *image = [UIImage imageNamed:@"image"];
This does not work in the interface builder, because the imageNamed: method uses the main package, but IB loads resources differently. Try something like this:
- (void)prepareForInterfaceBuilder { UIImage *image = [UIImage imageNamed:@"image" inBundle:[NSBundle bundleForClass:[self class]] compatibleWithTraitCollection:nil]; [self setImage:image forState:UIControlStateNormal]; }
source share