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 trialjohanneseichler
6,514 PointsNeither "NSForegroundColorAttributeName" nor "UITextAttributeTextColor" work!
The recommended workaround for the 3rd part of coding challenge 1 in this stage does not work.
Neither "NSForegroundColorAttributeName" nor "UITextAttributeTextColor" works for me. The debugger "Preview" does not give any feedback. I copied and pasted the recommended workaround from the comments.
On iOS the Preview says that it does no find the instance method -setTitleTextAttributes. I already tried dot notation because the documentation does only mention the property titleTextAttribute (while it mentions other setters)
miksar
24,587 Pointsmiksar
24,587 PointsIf you are still having this problem (and for all those who'll probably have the same problem in the future), you should read the task carefully.
It is asking you to change the text color of the buttons in the navigation bar, not the title text color. So the solution is actually really simple (it is the last line from the video):
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
I hope it helps as I was stuck on this seemingly easy challenge for a few minutes.