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 trialMichael Murray
6,037 PointsCompile completes but simulator halts before anything displays.
I see that in the debugger that it halts in the first thread the breakpoint at 1.4
Michael Murray
6,037 PointsIt was running fine until I started putting in the constraints on the label. I tried taking out the restraints. No better. Please Help. I would like to move on, but I need to know what happened so that I can avoid the problem in the future.
2 Answers
Michael Murray
6,037 PointsNever found an answer to this problem. I started a new project and worked through the entire lesson again and everything worked fine with it. ????????
Michael Murray
6,037 PointsMichael Murray
6,037 PointsMy code:
// // FactModel.swift // FunFacts // // Created by Michael L. Murray on 6/16/16. // Copyright © 2016 Michael L. Murray. All rights reserved. //
import GameKit
struct FactModel { let facts = [ "Ants stretch when they wake up in the morning.", "Ostriches can run faster than horses.", "Olympic gold medals are actually made mostly of silver.", "You are born with 300 bones; by the time you are an adult you will have 206.", "It takes about 8 minutes for light from the Sun to reach Earth.", "Some bamboo plants can grow almost a meter in just one day.", "The state of Florida is bigger than England.", "Some penguins can leap 2-3 meters out of the water.", "On average, it takes 66 days to form a new habit.", "Mammoths still walked the Earth when the Great Pyramid was being built." ]
}
// // ViewController.swift // FunFacts // // Created by Michael L. Murray on 5/21/16. // Copyright © 2016 Michael L. Murray. All rights reserved. //
import UIKit
class ViewController: UIViewController {
}
// // AppDelegate.swift // FunFacts // // Created by Michael L. Murray on 5/21/16. // Copyright © 2016 Michael L. Murray. All rights reserved. //
import UIKit
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {
}