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];
548k questions
547k answers
4 comments
86.3k users