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) Foundation Framework NSNumber

Sometimes IF i am doing wrong Its good to have the correct answer to the questions.

I am rushing through the materials because I just want to refresh my memory and maybe pick up some ideas that I have missed since I already am kind of experienced in Objective-C ;

nsnumber.mm
NSNumber *foxtrot;
foxtrot = [[NSNumber alloc] initWithInt:24];

NSLog(@"foxtrot %@",foxtrot);

NSNumber *planck;
planck = @6.626;

NSLog(@"planck %f",[planck floatValue]);

1 Answer

Kushtrim Abdiu,

I like the idea of this but.. I'm not sure that it would help the students learn and grow. As a matter of fact if it gave the answer I think a lot more people would have a lot more badges lol.

  • Aaron

You are right, I am in rush apparently, I didn't even think about that! :)

No worries. Have fun and happy coding!