Initializes a newly allocated array to include a given number of objects from a given C array.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
A C array of objects.
The number of values from the
objectsC array to include in the new array. This number will be the count of the new array—it must not be negative or greater than the number of elements in
A newly allocated array including the first
count objects from
objects. The returned object might be different than the original receiver.
Elements are added to the new array in the same order they appear in
objects, up to but not including index
After an immutable array has been initialized in this way, it can’t be modified.
This method is a designated initializer.