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 Objective-C Basics (Retired) Advanced Objective-C Dynamic Typing

Assign an NSNumber literal with a value of '4' to the variable 'thing'.

Having a hard time understanding the second part of the code challenge

1 Answer

Rashii Henry
Rashii Henry
16,433 Points

well in the second part of the code challenge all it is asking you is to assign an NSNumber literal with a value of 4 to the variable thing.

So basically whatever variable you have which is the name of the NSNumber, make sure you assign it the number four. But since the term literal is there, it means use the short hand.

For example, for NSNumber the literal short hand is the @ sign. so you would use @4 and assign that to the the variable thing as an NSNumber literal.

hope that helps!!