Navigation Controller to View Controller Programmatically Not Working IOS7 <p>Hi in my application i have navigation controller with registration and I'm doing the validation for my registration form if user enter a invalid data in the registration form it should not move to the next view controller and if user give the right data it should move to the next view controller but its not working.</p> <pre><code> - (IBAction)reg:(id)sender { if ([self validateEmail:[email text]]== 1 &amp;&amp; [self phonevalidate:[phone text]]== 1 &amp;&amp; [name.text length] &lt;= 25 &amp;&amp; [city.text length] &lt;= 25 ) { pollpoliticalViewController *pollVC = [[UIStoryboard storyboardWithName:@"Main.storyboard" bundle:nil] instantiateViewControllerWithIdentifier:@"PollPoliticalVCID"]; [self.navigationController pushViewController:pollVC animated:YES]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Thanks For The Registration" delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil]; [alert show]; [alert release]; }else{ UIAlertView *alert1 = [[UIAlertView alloc]initWithTitle:@"Message" message:@"you entered worng correct" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil, nil]; [alert1 show]; [alert1 release]; } } </code></pre> <p>I used this above code for the navigating to view controller form the navigation controller programmatically but its giving error like.</p> <blockquote> <p>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main.storyboard'</p> </blockquote> <p>But my storyboard name is main.storyboard i don't know why its giving error like this i have tried to by chaining the storyboard name but what ever i change the its giving the same error for all please tell me how to resolve this one.</p> <p>Thanks. </p>