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!
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

Lyric Abbott
35,595 Pointshow do you do this (build a diary app)
Create a local variable called appearance and assign it the appearance proxy of a UINavigationBar.
3 Answers

Stone Preston
42,016 Pointsyou need to call the appearance method on the UINavigationBar class and assign that to a variable.
UINavigationBar *appearance = [UINavigationBar appearance];
this is covered at 1:45 of this video
for more information on the UIAppearance protocol see the documentation

Stone Preston
42,016 PointsThe method is [UIColor whiteColor]

james rochabrun
Courses Plus Student 22,726 Pointsand also...if you name the variable appearance you should...
appearance.tintColor = [UIColor whiteColor];
Lyric Abbott
35,595 PointsLyric Abbott
35,595 PointsThanks that helped but i need help on the 2nd step to i put in this:
navigationBarAppearance.barTintColor = [UIColor colorWithWhite];
what am i doing wrong?