Type Alias

NSInteger

Describes an integer.

Declaration

iOS, macOS, tvOS
typedef long NSInteger;
watchOS
typedef int NSInteger;

Discussion

When building 32-bit applications, NSInteger is a 32-bit integer. A 64-bit application treats NSInteger as a 64-bit integer.

Topics

Constants

NSIntegerMax

The maximum value for an NSInteger.

NSIntegerMin

The minimum value for an NSInteger.

See Also

Numbers

NSUInteger

Describes an unsigned integer.

NSDecimal

A structure representing a base-10 number.

NSDecimalNumber

An object for representing and performing arithmetic on base-10 numbers.

NSNumber

An object wrapper for primitive scalar numeric values.

NSNumberFormatter

A formatter that converts between numeric values and their textual representations.