title: class is not key value coding-compliant for the key navigationBar
body: <p>I have added a UINavigationbar and UIscrollView to UIView(SecondView).When I click a button in firstView it should take me to secondView.
  On button click :</p>
  
  <pre><code> SecondView *secondview=[[SecondView alloc]initWithNibName:@"SecondView" bundle:nil];
   [self presentModalViewController: secondview animated:NO]; //error at this line 
   [secondview release];
  </code></pre>
  
  <p>In the secondView.h</p>
  
  <pre><code>@property(nonatomic,retain)IBOutlet UINavigationBar *navigationBar;
  @property(nonatomic,retain)IBOutlet UIScrollView *testscroll;
  </code></pre>
  
  <p>SecondView.m:</p>
  
  <pre><code>@synthesize navigationBar,testscroll;
  </code></pre>
  
  <p>But Im getting error like :</p>
  
  <p>Terminating app due to uncaught exception 'NSUnknownKeyException', reason: SecondView  setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key navigationBar.</p>
  
  <p>My secondView.xib is like this :</p>
  
  <p>Couldnot understand where Im going wrong?</p>