The number of objects in the array.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
var count: Int { get }
The number of objects in the array.
SDKs
Framework
var count: Int { get }
func contains(Any) -> Bool
Returns a Boolean value that indicates whether a given object is present in the array.
var first Object: Any?
The first object in the array.
var last Object: Any?
The last object in the array.
func object(at: Int) -> Any
Returns the object located at the specified index.
subscript(Int) -> Any
Returns the object at the specified index.
func objects(at: Index Set) -> [Any]
Returns an array containing the objects in the array at the indexes specified by a given index set.
func object Enumerator() -> NSEnumerator
Returns an enumerator object that lets you access each object in the array.
func reverse Object Enumerator() -> NSEnumerator
Returns an enumerator object that lets you access each object in the array, in reverse order.