// string1 will be released automatically
NSString* string1 = [NSString string];
// must release this when done
NSString* string2 = [[NSString alloc] init]; [string2 release];
NSString* string1 = [NSString string];
// must release this when done
NSString* string2 = [[NSString alloc] init]; [string2 release];
No comments:
Post a Comment