In this recipe, we will learn how to add and configure an application's project properties using Xcode so that it is set up correctly to use a Storyboard file.
To begin, follow these simple steps as outlined in the following order:
In this recipe, we learned how to manually add new Storyboard template to your project. We then looked at how to configure our project properties so that it is set up to use the Storyboard user interface file by our application.
Finally, when using Storyboards, we don't need to create a new UIWindow
as this will create another window instance,
and place this on top of the Storyboard. We need to modify our application's delegate
AppDelegate.m
class as shown in the following code snippet:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // Override point for customization after // application launch. return YES; } }
For more information about using Storyboards in your applications, you can refer to the Apple Developer Documentation located at: https://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/InterfaceBuilder/InterfaceBuilder