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 trialDennis Dixon
6,107 PointsQuiz not Accepting the Line of Code in Lesson
Resubmitted as advised by Customer Support:
Team Treehouse Team,
The “Styling the Navigation Bar” quiz in the “Implementing Designs for iPhone” section of the “iOS Development” Track is not accepting the line of code in the lesson: [[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
The Apple docs said that UITextAttributeTextColor is deprecated in iOS 7, so I replaced that constant with 'NSForegroundColorAttributeName' and it still didn't pass the Treehouse quiz compiler.
Both compiled for me in Xcode 5.1 only giving me a warning in the first version of the line.
This is preventing me from completing the section and the track so your assistance as soon as possible will be greatly appreciated. Thanks and have a great day.
Regards, Dennis
2 Answers
Dennis Dixon
6,107 PointsMy mistake. I found my error. I thought that setting the title text attributes set the nav bar text color. Setting the tintColor property of the UINavigationBar did it...but what do I do now that I've confirmed that I'm a bonehead? :)
Benjamin Harrison
4,784 PointsEven though that's true, the error that it gives is "syntax error" which is incorrect and misleading.
Dennis Dixon
6,107 PointsDennis Dixon
6,107 PointsI reposted this question as advised by Customer Support.