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 trialSean Allen
2,416 PointsGetting a thread breakpoint in AppDelegate for hiding status bar
I've checked and my code seems correct and exactly what's on the video.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
application.setStatusBarHidden(true, withAnimation: .None)
return true
When I run the app, it hangs on the launch screen then kicks me to the app delegate file with an error on the above line of code saying "Thread 1: Breakpoint 2.1"
I'm stuck here as the app won't build.
1 Answer
Max Hirsh
16,773 PointsI ran into the same issue myself just now. I think it has to do with the syntax changing slightly in the new edition of xcode 6.1. What worked for me was deleting the line beginning with "application.setStatusBarHidden..." and retyping it like this:
application.setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.None)
the key difference is going through the trouble of typing out "UIStatusBarAnimation" part before the ".None." I also selected the ".None" part from the drop down menu if that makes a difference. Hope this helps!