Xcode: Using Multiple Storyboards in Your App

Storyboards / Tutorials

Intro:
You can use more than one storyboard file in Xcode to keep different aspects of your app separate and organized. In this tutorial we create a simple app that uses one storyboard for the main application and a separate storyboard for the settings view controllers.

Key Code:

UIStoryboard *settingsStoryboard = [UIStoryboard storyboardWithName:@"SettingsStoryboard" bundle:nil];
UIViewController *initialSettingsVC = [settingsStoryboard instantiateInitialViewController];
initialSettingsVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:initialSettingsVC animated:YES];

Download the project:

Julian Bryant


Related Posts

Objective C: Saving User Preferences

iOS App Starts Trounce Android Development

iOS App Starts Trounce Android Development

Building Your First App: The “HelloWorld” Tour of XCode

Building Your First App: The “HelloWorld” Tour of XCode

Image of Pop-up Window for Setting Properties

Quick Tip: Shortcut for setting @property/@synthesize in Xcode

Mobile Developers Excited About iCloud & Google+

Nav Bar 3: Using Custom Images in the Nav Bar for iOS

Nav Bar 3: Using Custom Images in the Nav Bar for iOS