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 Simple iPhone App with Swift 2.0 View Controllers and Views Introduction to Views

Simulator shows up with the view for a few seconds when starting up. Then the label and button I added disappear.

I'm on Xcode 7.2.0 - I followed along with Pasan's instructions and ran the simulator. The labels and buttons I added show up for a few seconds when the simulator first loads. However, the label and button then disappear from the simulator and I am left with a blank white screen.

I tried Resetting Content and Settings from Simulator. Couldn't find an exact fix on Stack Overflow. Some other things I tried: changed the scale of the simulator to 50% and then to 75%. Nothing seems to work.

Has anyone here experienced this? And if so, what would you suggest I do to fix?

1 Answer

I solved this. Pro tip: make sure you're using the right Storyboard. I accidentally used "LaunchScreen.storyboard" vs. Main.storyboard. Doh!