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 trial

iOS

Drew S
Drew S
34,034 Points

Styling the Navigation Bar - Code Challenge (3 of 3)

I'm having problems passing the last code challenge for Styling the Navigation Bar.

Here is the question: "Now we want to change the color of the text of our navigation bar buttons to white. Use the appearance proxy to change the color using [UIColor whiteColor]."

Here is my code.

[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithOjbectsAndKeys:[UIColor whiteColor], UITextAttributeTextColor, nil]];

Any suggestions?

Edit: Solved it.. I need to read the questions better.

1 Answer