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

Niraj Jayant
Niraj Jayant
4,239 Points

Question not working or giving helpful hint

I copied the code from the video to make the appearance and the simulator will not give me the right answer. I used:

UINavigationBar* appearance = [UINavigationBar appearance]; and the hint is something that is not really relevant

1 Answer

Misha Shaposhnikov
Misha Shaposhnikov
8,718 Points

Remove the space between asterisk and the pointer "appearance" and add a space between the asterisk and type "UINavigationBar". It's a quirk with the Treehouse Code Challenge checker because it's looking specifically for the word UINavigationBar, but with the asterisk placed as you have above, the strings do not match perfectly, so it counts it as wrong. It's also convention to append the asterisk to the pointer, not the type. In the end, it should look like this:

UINavigationBar *appearance = [UINavigationBar appearance];

Happy Coding! =)