There is an array in my app having multiple same values in it. I need to delete only one value at a time from array whether it has same more values in it.
Level1 Business,
Level2 Economy,
Level2 Economy,
Level1 Business
How this can be achieved, and main thing is that these values are dynamic these can be more or less also. Please guide for above. Below is what i tried.
if([arr containsObject:[NSString stringWithFormat:@"%d",ind]]){
[arr removeObject:[NSString stringWithFormat:@"%d",ind]];
}
This thing removes all similar entries, not required. Thanks in advance.