Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Self-Destructing Message iPhone App Designing and Starting the App A Storyboard with a Tab Bar Controller

XCode 6 blank white screen, iOS development Self Destructing Message App

When I follow the video using Xcode 6, (having previously used the tutorial to reconstruct the Xcode 5 and earlier version of an Empty Application) I receive a blank white screen after adding the tab views and the three tabs (inbox, friends, camera). Any suggestions as to how to update the instructions to work in Xcode 6?

I'm not sure if this is an issue with Auto Layout.. Thanks!

7 Answers

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Hi,

I did had time to look at the project and I've done some changes to it.

  • the customization code in AppDelegate.m had to be removed, now it's only "return YES;"

  • in the product details, under the General tab, the main storyboard was not selected. ( https://www.dropbox.com/s/80b47fbrtv6wg7d/Screenshot%202014-10-13%2012.35.55.png?dl=0 )

  • each tab in a TabBarController has to have a valid controller attached to it, and by valid I mean of its type. I've added 3 new UITAbleViewControllers to your project.

You can download the modified project here: https://dl.dropboxusercontent.com/u/7220030/Ribbit.zip

Hi Robert, the instructions and the project are very helpful. Thank you so so so much, you are incredible! Btw, did you start out with a tabbed application template? Best wishes, Ogechi

Robert Bojor
Robert Bojor
Courses Plus Student 29,439 Points

I just modified your project but basically it is similar to a Tabbed App.

The difference is that if you start a Tabbed application, Xcode will do all this for you, in your case, you had to do it manually.

Ah okay, great. Works perfectly anyhow :)

Thanks! I used that and it is not quite the same as the Xcode 5 empty app, so I reconstructed that by removing certain files from the Single View App template with no problem. I've also tried to follow along using an Xcode 6 empty app template.

The actual problem I'm having is that after following this video, importing and adding the tabs and the tab views, when I run my app, I still get a blank white screen.

Kevin Hamil
Kevin Hamil
8,203 Points

I went searching for a work-around too and I found this thread... if you scroll to the bottom there's a link to a template file already made that you can add to your xcode templates.

https://teamtreehouse.com/forum/no-more-empty-application-template-in-xcode-6

Thanks for the quick response, Kevin! I followed that tutorial, and I got (the equivalent of) an empty Xcode 5 template in Xcode 6. But after I go through the video, and add the three Table Views/tabs, when I run the application, I still receive a blank white screen. The tabs should appear on the bottom of the screen, but nothing shows up.

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

The Empty Application has been moved under iOS -> Other.

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Can you archive your project and put it up somewhere in order to share it? I would like to have a look at it.

Sure, here you are:

https://www.dropbox.com/s/57sg2wb6xgzk5z5/Ribbit.zip?dl=0

Again, thank you soo much!

Hi Robert, Have you gotten a chance to take a look at the project? Let me know, and thanks!!

Michael Kantor
Michael Kantor
2,183 Points

Did you get this resolved? I have the same problem.

Not yet, but I'll keep you posted!