简体   繁体   中英

uisplitviewcontroller segue to another uisplitviewcontroller

I know the UISplitViewController can only be used as the root controller. but is it possible to go from a split view to another split view?

like load the detail and master views with different data and layout?

It isn't a segue per se, but it does change out the view controller for another:

AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication] delegate];
app.window.rootViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"HomeViewController"];

where @"HomeViewController" is the Storyboard ID of the UISplitViewController on your storyboard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM