How to convert an NSNumber to NSInteger ?
+12
A:
NSInteger myInteger = [myNumber integerValue];
Was that hard to find in the documentation?
Ole Begemann
2010-03-01 10:21:39
if you remove the comment, i'll upvote your answer
DrJokepu
2010-03-01 14:53:07
I upvoted the answer because of the comment. Some questions deserve an RTFM answer.
NSResponder
2010-03-01 16:24:19
also upvoted because of comment.
jamone
2010-03-01 16:43:45
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
2010-03-02 09:57:39
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
2010-03-02 12:52:04