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

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -