For example I have an array = [12,13,13,13,14,15,16,16,17];
and my output will be 12,13,14,15,16,17.
Please help me on this.
You can use NSSet instead, it doesn't allow duplicates.