How do I increment a NSNumber?
i.e. myNSNumber++
NSNumber objects are immutable; the best you can do is to grab the primitive value, increment it then wrap the result in its own NSNumber object:
NSNumber
NSNumber *bNumber = [NSNumber numberWithInt:[aNumber intValue] + 1];
2.1m questions
2.1m answers
60 comments
57.0k users