Where are are views controllers in the storyboard initiated? <p>I have a <a href="http://imgur.com/XJKU7RI" rel="nofollow">main view controller</a> in the main story board. I want this controller to have a state when it is initiated. I need to know where this view controller is initiated so that I can change its constructor to the following custom constructor. Can someone help me out? </p> <pre><code>- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.state= @"login";} return self;} </code></pre>