Your are probably not calling [super initWithCoder:coder]
from your custom override of this method. The data is loaded from nib archive into the UIView
instance in this super implementation. The correct implementation should look like:
- (id)initWithCoder:(NSCoder *)aDecoder
{
self = [super initWithCoder:aDecoder];
if (nil != self) {
// extra initialization code
}
return self;
}