How to empty an NSMutableArray ?

By | March 20, 2011

Hi,
Sometimes you may need to empty an array completely. How to do it? Use the following lines of code for it.

[yourArray removeAllObjects];

here yourArray is the name of your array!
🙂

Leave a Reply

Your email address will not be published. Required fields are marked *