How do you go from one storyboard to another? not view to view within a storyboard

ios, iphone, objective-c, storyboard, xcode

Solution

I've found the answer to my own question!

Here's the code for my problem:

-(void)viewDidLoad {

    if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
        CGSize result = [[UIScreen mainScreen] bounds].size;

        if(result.height == 480){}
        if(result.height == 568){[self performSelector:@selector(inch4) withObject:nil afterDelay:0];}}}



-(void)inch4 {

    UIStoryboard *storyBoard;

    storyBoard = [UIStoryboard storyboardWithName:@"iPhone4inch" bundle:nil];
    UINavigationController *init4inchViewController = [storyBoard instantiateViewControllerWithIdentifier:@"MainMenu4inch"];
    [self presentModalViewController:init4inchViewController animated:NO];

}

here's the code to switch storyboard files:

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"storyboard2" bundle:nil];
[self presentModalViewController:[storyboard instantiateViewControllerWithIdentifier:@"storyboard2initialviewcontroller"] animated:NO];

Problem

Hi I have created two storyboard files and I have no Idea how I would switch between them. For switching within one storyboard I set the Identifier and use this code: ``` [self performSegueWithIdentifier:@"identifier" sender:self]; ``` this code crashes the app when it is used to switch storyboards. Please help

Original source

Related problems