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 Build a Diary App Using Core Data Custom UITableViewCell UIAppearance to Customize the Navigation Bar

Willie Oeschger
Willie Oeschger
3,776 Points

Create 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];

peng wang
peng wang
5,097 Points

I also have the same issue.. Please someone help me!

4 Answers

Hi Willie, Your code almost right, except "apperance". It is "appearance".

Hi everyone!

Correct answer UINavigationBar *appearance = [UINavigationBar appearance];

Anna Widera
Anna Widera
2,997 Points

Hello, 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
Chris Shaw
26,676 Points

Hi 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];