Creates and returns an array containing the objects in another given array.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
+ (instancetype)arrayWithArray:(NSArray<Object Type> *)array;
Parameters
anArray
An array.
Return Value
An array containing the objects in an
.