Instance Method object At Indexed Subscript:
Returns the object at the specified index.
iOS 6.0+ macOS 10.8+ UIKit for Mac 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration - ( ) Object Type objectAtIndexedSubscript:( ) NSUInteger idx;
An index within the bounds of the array.
The object located at
This method has the same behavior as the
method. object At Index:
is beyond the end of the array (that is, if
is greater than or equal to the value returned by
count is raised. NSRange Exception
You shouldn’t need to call this method directly. Instead, this method is called when accessing an object by index using subscripting.
id value = array; // equivalent to [array objectAtIndex:3]
See Also Querying an Array - contains Object:
Returns a Boolean value that indicates whether a given object is present in the array.
The number of objects in the array.
- get Objects:
Copies all the objects contained in the array to
a Buffer Deprecated - get Objects: range:
Copies the objects contained in the array that fall within the specified range to
a Buffer - objects At Indexes:
Returns an array containing the objects in the array at the indexes specified by a given index set.
- object Enumerator
Returns an enumerator object that lets you access each object in the array.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software