I have 1 mutablearray, i want to remove object all indexs but hold object at first index. EXample : Input : Array (a,b,c,d,e) Output: Array (a)
Can you help me. Thanks in advance
I have 1 mutablearray, i want to remove object all indexs but hold object at first index. EXample : Input : Array (a,b,c,d,e) Output: Array (a)
Can you help me. Thanks in advance
Keep a reference to your a object (MyObject temp = [array objectAtIndex:0]), do removeAllObjects, then insertObject:a