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!

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 Improving Our User Interface Adapting Our Content

Black Screen, Finished the lesson, Xcode is not prompting any errors yet all I'm getting is a black screen?

No error notifications in Xcode. The view controller matches the script listed in the lesson yet all I get in the iOS simulator is the black screen of death. Help

import UIKit

class ViewController: UIViewController { @IBOutlet weak var funFactLabel: UILabel!

let factBook = FactBook()

override func viewDidLoad() {
    // Do any additional setup after loading the view, typically from a nib.
    funFactLabel.text = factBook.randomFact()

override func didReceiveMemoryWarning() {
    // Dispose of any resources that can be recreated.

@IBAction func showFunFact() {
    funFactLabel.text = factBook.randomFact()