views:

1062

answers:

1

How to convert an NSNumber to NSInteger ?

+12  A: 
NSInteger myInteger = [myNumber integerValue];

Was that hard to find in the documentation?

Ole Begemann
if you remove the comment, i'll upvote your answer
DrJokepu
I upvoted the answer because of the comment. Some questions deserve an RTFM answer.
NSResponder
also upvoted because of comment.
jamone
There is a lot to be said for actually taking the time to read the documentation. With a question as simple as this, less than five minutes in the documentation browser would have revealed the answer, saving himself and everyone else time and effort.
Jasarien
Am sorry..i was confused about NSNumber and NSInteger. Am a newbie in objective c..Sorry to u all for ur time and also thanks to Ole Begemann...
Sijo