NSMutableArray remove Object clones another object in the array

I have a strange error after deleting an object in NSMutableArray.

Before deleting an object

If I delete the object with

[Array removeObjectAtIndex:2]; 

the array has changed to this:

enter image description here

why now there are 2 ContactViewControllers ??

+4
source share
1 answer

lldb lies sometimes. It gets confused and displays incorrect information. Try to do

 po Array 

you should see the correct contents of the array.

+7
source

All Articles