title: Unrecognised selector sent to instance on calling any variable from other controller.
body: <p>I have a ViewController CafeViewController namely. It contains many global arrays and variables, Im trying to call its one of the variable in my other view controller reservationViewController namely via following lines of code</p>
  
  <pre><code>UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
  CafesViewController *controller2 = (CafesViewController*)[mainStoryboard instantiateInitialViewController];
  
  NSLog(@"title which is in next screen is %@", controller2.restuarentsList);
  </code></pre>
  
  <p>Now I have checked with the help of breakpoint that there is no error before NSLog, after putting nslog line of code it gets terminated. Help please </p>
  
  <p>warning is :- Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINavigationController restuarentsList]: unrecognized selector sent to instance 0x10a3d9320'</p>