how to remove duplicate value in NSMutableArray

前端 未结 6 1349
离开以前
离开以前 2021-01-24 22:32

i\'m scanning wifi info using NSMutableArray, but there are few duplicate values appear, so i try to use following code but still getting the duplicate values,

         


        
6条回答
  •  无人共我
    2021-01-24 23:08

    You should be using an NSMutableSet in the first place.

    For eliminating all double entries in an array, see this question:
    Make NSMutableArray or NSMutableSet unique.

提交回复
热议问题