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 trialNiraj Jayant
4,239 PointsQuestion 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
8,718 PointsRemove 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! =)