Returns the object at the specified index of the set.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
- (Object Type)objectAtIndex:(NSUInteger)idx;
Parameters
index
The object located at index.
Return Value
If index
is beyond the end of the ordered set (that is, if index is greater than or equal to the value returned by count), an NSRange
is raised.