Strange behaviour in NSMutableArray
.
I\'ve created object and filled it.
NSMutableArray *array = [[NSMutableArray alloc]
your same code is working fine., just clean and build the project. here is my code
NSMutableArray *sampleArray = [[NSMutableArray alloc]
initWithObjects:@"1",@"2",@"3",@"4", nil];
NSLog(@"%@", sampleArray);
[sampleArray removeObjectAtIndex:0];
NSLog(@"%@", sampleArray);
Are you using lldb for debugging? Try gdb if so.
lldb has known bugs of this nature where it reports the incorrect values of variables during a debug session.
To change the debugger to gdb: