title: iOS loading xib gives setValue:forUndefinedKey:]
body: <p>I have a BasicView:</p>
  
  <pre><code>#import "BasicView.h"
  
  @implementation BasicView
  
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          // Initialization code
      }
      return self;
  }
  
  +(instancetype)initializeFromNib:(NSString*)nibName {
      return (BasicView*)[[[NSBundle mainBundle] loadNibNamed:nibName owner:self options:0] objectAtIndex:0];
  }
  </code></pre>
  
  <p>And a view inheriting from it:</p>
  
  <pre><code>@interface AlbumPicturesView : BasicView
  
  /**
   The pictures label - need be removed once there are pictures in the album
   */
  @property (weak, nonatomic) IBOutlet UILabel *picturesLabel;
  
  /**
   The pictures cell view
   */
  @property (weak, nonatomic) IBOutlet UICollectionView *picturesCollectionView;
  
  
  @end
  
  #import "AlbumPicturesView.h"
  
  @implementation AlbumPicturesView
  
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          // Initialization code
      }
      return self;
  }
  
  
  /*
  // 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>with a xib file.</p>
  
  <p>I try to show this view on screen with the following function:</p>
  
  <pre><code>/**
   Show the pictures view view on the right position on the screen
   */
  
      -(void) showPicturesView {
         _albumPicturesView = [AlbumPicturesView initializeFromNib:VIEW_ALBUM_PICTURES];
          [self.view addSubview:_albumPicturesView];
          float yPosition = _albumIconsView.frame.origin.y + _albumIconsView.frame.size.height;
          float height = self.view.frame.size.height - yPosition;
          _albumPicturesView.frame = CGRectMake(_albumPicturesView.frame.origin.x, yPosition, _albumPicturesView.frame.size.width, height);
      }
  </code></pre>
  
  <p>but i keep getting the:</p>
  
  <pre><code>[&lt;AlbumPicturesView 0x113104&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key picturesCollectionView.
  </code></pre>
  
  <p>although it all set in the interface builder.. can someone please explain why?</p>