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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -