views:

96

answers:

1

Hi all,

I need to remove all objects from a NSMutable Array. I can't seem to do this by enumerating as the code crashes.

Can anyone tell me the best way to do this with code example if possible ?

Many thanks,

Martin

+9  A: 

This should do the trick:

[myArray removeAllObjects];
Richard J. Ross III