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 trialWillie Oeschger
3,776 PointsCreate a local variable called appearance and assign it the appearance proxy of a UINavigationBar.
Hi could I please have some assistance with this. Here is the code that I am trying to implement.
UINavigationBar *apperance = [UINavigationBar appearance];
4 Answers
Yufei Ning
3,427 PointsHi Willie, Your code almost right, except "apperance". It is "appearance".
Valeriy Yamkovyy
11,579 PointsHi everyone!
Correct answer UINavigationBar *appearance = [UINavigationBar appearance];
Anna Widera
2,997 PointsHello, I've encountered the same problem. I am writing the following code:
UINavigationBar * appearance = [UINavigationBar appearance];
but I can't pass the test.
In the previous video Ash Furrow uses the same bit of code. What is wrong? Has anyone passed this exercise already?
Thank you in advance, Ania
Chris Shaw
26,676 PointsHi Willie,
Your appearance variable is of the wrong type, when you call for the appearance
property on a UINavigationBar
object it returns the type UIAppearance
so instead you should have the following.
UIAppearance *apperance = [UINavigationBar appearance];
peng wang
5,097 Pointspeng wang
5,097 PointsI also have the same issue.. Please someone help me!