Web Development

NSNumber to NSInteger and vice versa is easy. NSInteger is a primitive type and not an object type.

To get NSInteger from a NSNumber you can do the following:

anInteger = [aNumber intValue];

To get NSInteger from a NSNumber you can do the following:

aNumber = [aNumber numberWithInteger:anInteger];