A structure used to describe a portion of a series, such as characters in a string or objects in an array.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
typedef struct _NSRange {
...
} NSRange;
Overview
Foundation functions that operate on ranges include the following: