Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Benjamin Dirgo
2,215 PointsFollowed tutorial and all I got was a black screen in the simulator
I'm not sure what I am doing wrong, or how to fix it. I have tried twice now following along the "Ribbit" tutorial, and all I get is a black screen in the simulator when I hit run. When I started with the empty application it ran fine, but once I deleted the code in didFinishLaunchingWithOptions in the AppDelegate all I got was a black screen. The tabbed interface still didn't appear after creating a ViewController for the Inbox. Should they all have ViewControllers before any of them will appear?
Thank You.
1 Answer

kerdeseverin
9,688 PointsMake sure that you set the default storyboard that the project is using. Under General-> Deployment Info-> Main Interface in the project settings.
In your didFinishLaunchingWithOptions Remove the below code if using Storyboards. or add it back if not using Storyboards to set the rootViewController
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window makeKeyAndVisible];
self.window.rootViewController = yourViewController;

Benjamin Dirgo
2,215 PointsThe Main Interface setting did it. So simple, I don't know how I missed that step. Thank you very much. =]

Sean May
9,547 PointsThank you! I was having the same issue and was getting really frustrated (thought it might have been an Xcode 4 thing when I was using Xcode 5)
Benjamin Dirgo
2,215 PointsBenjamin Dirgo
2,215 PointsI tried targeting iOS 6.1 as well as restarting my computer as well as following the same steps on a different computer with the same version of Xcode. All with the same result, a black screen, no tabbed interface or login screen.