%p . ?
&nextObject - nextObject, , ; - . nextObject , , , , , void*:
NSLog(@"Address = %p, value = %@", (void*)nextObject, nextObject);
for nextObject NSDictionaries ,
.
[msgDetailArray copy], removeObject, msgDetailArray.
, , . , .
The call [msgDetailArray removeObject:nextObject]works with the original array. If you do not want this effect, save the copy in a variable and delete elements from it instead:
NSMutableArray *mutableCopy = [msgDetailArray mutableCopy];
...
[mutableCopy removeObject:nextObject];
This will not affect the original array. However, you cannot iterate mutableCopyat the same time as removing elements from it.
source
share