How to empty properly an NSMutableArray

0 votes
39 views
asked Jan 25, 2013 in Objective C by BasicQuestion (1,355 points)
in my project i want to empty the NSMutableArray while press the refresh button...

please give some sample code for that?..

1 Answer

0 votes
answered Jan 25, 2013 by anonymous

it's will solve your problem..

if(dataArray){

       [dataArray removeAllObjects];     

}

...