Reputation: 272
I have a project that I originally started working on in Xcode 4. I then moved this project to Xcode 6. The project compiles and runs swimmingly. I then wanted to move this to use Storyboards.
Reading here and elsewhere I see people say they accomplished this by doing the following:
Go into the appdelegate.m file and edit the didFinishLaunchingWithOptions section to look like this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
return YES;
}
No errors in my code. Builds fine but instead of seeing the new Storyboard / ViewController, I just see a black screen. Im sure I am missing something somewhere but I cannot seem to find what it is.
If you would like to see my code, I have it here: https://github.com/martylavender/LittleToDoApp/tree/Storyboards
Thanks
Upvotes: 0
Views: 2423
Reputation: 272
I figured it out.
Looking at the build information of the project, I hadnt set the Main Interface to the MainStoryboard. That with the earlier suggestion fixed it!! Thanks!!!
Upvotes: 1
Reputation: 417
You need to set your first view controller as the initial view controller in your storyboard.
You just need to check the is initial View Controller
line on the right panel
Upvotes: 2