Deleting Elements

suggest change

Remove at specific index:

[myColors removeObjectAtIndex: 3];

Remove the first instance of a specific object:

[myColors removeObject: @"Red"];

Remove all instances of a specific object:

[myColors removeObjectIdenticalTo: @"Red"];

Remove all objects:

[myColors removeAllObjects];

Remove last object:

[myColors removeLastObject];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents