ios - Load UISplitViewController programmatically from another Storyboard -


currently using 2 ipad storyboards in project.

the first storyboard has login screen , tableview controller. want call second storyboard first storyboard tableview controller, when cell clicked. it's easy, here second story board has uisplitviewcontroller.

    mainsvc *baseview = [[mainsvc alloc] init]; //uisplitviewcontroller      uistoryboard *storyboard=[uistoryboard storyboardwithname:@"mail_ipad" bundle:nil]; //second storyboard      baseview =[storyboard instantiateviewcontrollerwithidentifier:@"mainsvc"]; //mainsvc = storyboard name     [self presentviewcontroller:baseview animated:yes completion:nil]; 

this code not working. searched in google, couldn't find best solution.

how can call second storyboard splitview controller programmatically?

use code. should work. !

    uistoryboard *storyboard=[uistoryboard storyboardwithname:@"mail_ipad" bundle:nil];      uisplitviewcontroller *split = [storyboard instantiateviewcontrollerwithidentifier:@"mainsvc"];     self.view.window.rootviewcontroller = split; 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -