title: IBOutlet is nil inside custom UIView (Using STORYBOARD)
body: <p>I have a custom <code>UIView</code> class. Inside it I have declared an  <code>IBOutlet</code> property for <code>UIImageView</code>.</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface SettingItem : UIView{
  
  }
  
  @property (strong, nonatomic) IBOutlet UIImageView *myImage;
  
  @end
  </code></pre>
  
  <p>Now i am using storyboard. There is a viewcontroller. I dragged <code>UIView</code> to viewcontroller. I dragged one <code>UIImageView</code> as a subview of above <code>UIView</code>. I set the "SettingItem" class to <code>UIView</code> from storyboard. I connected the outlet to myImage by normal dragging from outlets of <code>SettingItem</code> from utilities window.</p>
  
  <hr>
  
  <h2><code>SettingItem</code> implementation</h2>
  
  <pre><code>#import "SettingItem.h"
  
  @implementation SettingItem
  
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          // Initialization code
          [self baseInit];
      }
      return self;
  }
  
  -(id) initWithCoder:(NSCoder *)aDecoder{
      self = [super initWithCoder:aDecoder];
      if (self) {
          // Initialization code
          [self baseInit];
      }
      return self;
  }
  
  - (void) baseInit{
      NSLog(@"myImage %@"self.myImage);
  }
  
  /*
  // Only override drawRect: if you perform custom drawing.
  // An empty implementation adversely affects performance during animation.
  - (void)drawRect:(CGRect)rect
  {
      // Drawing code
  }
  */
  
  @end
  </code></pre>
  
  <p>Now my problem is <code>myImage</code> is always <code>nil</code>, above <code>NSLog</code> just print <code>(null)</code> for the outlet. I checked the view in storyboard and checked its outlet reference and its pointing to <code>myImage</code>. I am missing something. I googled for the help but couldn't find any solution. </p>
  
  <p>Can you please point out what am i doing wrong ?</p>