34,333
edits
Changes
→Deleting Elements from an Array Object
[myColors removeAllObjects];
</pre>
To remove the last object in the array, use the ''removeLastObject'' method:
<pre>
myColors = [NSMutableArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow"];
[myColors removeLastObjects];
</pre>