objective c - How to remove the repeated data in the pickerview in iphone? -
i have array 10 data. i'm showing value of array in pickerview. out of 10 values in array 4 data same example there apple 4 times. how remove repeated data , show 1 time apple in picker.
you can remove duplicate data array like:
nsarray *cleanedarray = [[nsset setwitharray:yourarray] allobjects];
Comments
Post a Comment