How to convert NSNumber to int using Objective-C

To convert NSNumber to int using Objective-C you can use the snippet below.

NSInteger myInteger = [myNumber integerValue];

Please Share us:
Please rate this snippet

3 thoughts on “How to convert NSNumber to int using Objective-C

Leave a Reply