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 trialEthan Humphries
4,784 PointsIs 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
42,016 PointsEthan 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
42,016 Pointswhat exactly are you having a problem doing?
Ethan Humphries
4,784 PointsI followed the tutorial and checked all my code, but when i try to run the app, I just have a blank screen.
Stone Preston
42,016 Pointson 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
4,784 PointsNo, the screen is still blank.
Stone Preston
42,016 Pointshmm 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
4,784 PointsOk, but I would need another way to send it to you as i do not have dropbox
Stone Preston
42,016 Pointswell 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
4,784 PointsOk, I think i have shared it.
https://www.dropbox.com/s/tt5kxf0xwdrdcs1/Xcode%20Projects.zip
Ethan Humphries
4,784 PointsOh wow, thanks for the help.
Trino Mitra
11,165 PointsI'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.