Friday 2 October 2015

Push viewController from code and storyboard In Ios

PlaceViewController *newView = 
 [self.storyboard instantiateViewControllerWithIdentifier:
@"storyBoardIdentifier"];
[self.navigationController pushViewController:newView animated:YES];
 
 
 
 

For Storyboards, you should use performSegueWithIdentifier like so: 
[self performSegueWithIdentifier:@"identifier goes here" sender:self];