An NSIntegeris just a typedef with the following definition:
#if __LP64__ || NS_BUILD_32_LIKE_64
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif
Since typedef is defined differently on the platform, you can use it NSIntegerregardless of the platform.
source
share