• Register

How to empty properly an NSMutableArray

0 like 0 dislike
13 views
in my project i want to empty the NSMutableArray while press the refresh button...

please give some sample code for that?..
asked Jan 25, 2013 in Objective C by BasicQuestion (1,345 points)

1 Answer

0 like 0 dislike

it's will solve your problem..

if(dataArray){

       [dataArray removeAllObjects];     

}

answered Jan 25, 2013 by anonymous
...