Instance Method array By Adding Object:
Returns a new array that is a copy of the receiving array with a given object added to the end.
iOS 2.0+ macOS 10.0+ UIKit for Mac 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration - ( ) < NSArray > * Object Type arrayByAddingObject:( ) Object Type anObject;
A new array that is a copy of the receiving array with
added to the end.
an Object Discussion
NSInvalid Argument Exception See Also Deriving New Arrays - filtered Array Using Predicate:
Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true.
- subarray With Range:
Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range.
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