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 Adding Login and Sign Up Screens

M T
M T
11,934 Points

XCode 6 - App only works in portrait view

I'm trying to redo this project in Xcode 6. I've done it a few times in the past, even customized for a personal app. I haven't run into this behavior before, so perhaps there's something about Xcode 6 I don't know.

Currently, the app loads and pushes to the Log-In view controller ("push" is deprecated, so I'm using "show" which is the equivalent according to the attributes inspector).

However, the Log In view controller shows up as a white screen. I've tried viewing within different device simulators to see if the content was off screen, but nothing changed. I've also tried changing the simulated metrics and changing the content size, but all I see is white. I have the back button to return to the table view.

I've thrown in messages to the console to make sure I'm entering view did load, and I am.

[self performSegueWithIdentifier:@"showLogin" sender:self];

is the only code added. Casing matches.

Any takers?

Edit: I was able to run an older tabbed app in xcode 6, so I've probably overlooked something and it would not be due to the update. Also, I get the same white screen (minus the back button/menu bar) if I make the Log-In screen the initial view.

Edit: I think my view controller isn't rendering the text field, button, and label objects. If I change the background color from white to none, I get a black screen (even making it transparent). So, it's not as if they're being blocked from view.

M T
M T
11,934 Points

Big clue: This is only working in portrait mode for me (which I previously had turned off).

Is there some big difference in how xcode 6 or iOS 8 render objects that we can't place them on the screen as shown in the video?

M T
M T
11,934 Points

Looks related to this problem, which I'll start working on:

https://teamtreehouse.com/forum/xcode-6-blank-white-screen-ios-development-self-destructing-message-app

I wonder how many of these videos have been made unusable by the changes in Xcode 6.

I'm not sure how what's in the above thread, or the empty app template linked through that thread (linked below) are supposed to fix this problem, but we'll see.

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