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 Blog Reader iPhone App Rebuilding from Scratch Adding a Table View Controller Class

Ethan Humphries
Ethan Humphries
4,784 Points

Is there a reason this won't work in xcode 5?

I am using xcode 5 to follow this tutorial and cannot make this work correctly, however I have been able to follow the rest of the course without any problems. Is there a reason that this example would need to differ in xcode 5 at all?

9 Answers

Stone Preston
Stone Preston
42,016 Points

Ethan Humphries found your issue. Since you are using a storyboard, you need to open up your appDelegate.m. Go to the didFinishLaunching with options method that looks like this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

remove everything but the return statement so that it looks liek this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    return YES;
}

build and run and your tableView will appear

Stone Preston
Stone Preston
42,016 Points

what exactly are you having a problem doing?

Ethan Humphries
Ethan Humphries
4,784 Points

I followed the tutorial and checked all my code, but when i try to run the app, I just have a blank screen.

Stone Preston
Stone Preston
42,016 Points

on the left side of xcode in the file explorer select the item thats at the very top of the file tree. its the one with the blue xcode icon next to it. clicking this will open your project settings. in the general tab, scroll down to the main interface field and set the main interface to be your storyboard file. try that and see if that work

Ethan Humphries
Ethan Humphries
4,784 Points

No, the screen is still blank.

Stone Preston
Stone Preston
42,016 Points

hmm if you want you can zip up your entire project folder and post it on dropbox or something and ill take a look at it. You will need to upload the entire project folder from its root directory. For example, if you saved your project named BlogReader in a directory called iOS Projects. the folder you need to archive is iOS Projects/BlogReader/

Ethan Humphries
Ethan Humphries
4,784 Points

Ok, but I would need another way to send it to you as i do not have dropbox

Stone Preston
Stone Preston
42,016 Points

well you can signup. its free. it will be too large to email. pushing to github would also work if you are familiar with git.

Ethan Humphries
Ethan Humphries
4,784 Points

Oh wow, thanks for the help.

Trino Mitra
Trino Mitra
11,165 Points

I'm having the same issue. It loads a blank screen instead of the tableview. I have set the main interface and have the correct didFinishLaunching in my delegate file.