Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Implementing Designs for iPhone Customizing Table View Controllers Styling the Navigation Bar

Neither "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)

If 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.