ios - Do I need to remove NSMutablearray objects before NULL/deleting NSMutablearray -
nsmutablearray *thisarray = [[nsmutablearray alloc] initwithobjects:@"one", @"two", @"three", nil];
do need delete objects before deleting thisarray?
thisarray = null;
a nsarray/nsmutablearray keeps reference objects contains, , setting array null automatically releases references. don't have cycle through them release them manually.
Comments
Post a Comment