Hello
For NSString, we can use
NSString *str = [[NSString alloc] initWithString:@"hi"]
NSString *str = [NSString stringWithString:@"hi"];
NSString *str = @"hi";
Can someone pls told me in the form of point 3, whether str own @"hi"? I mean whether I need to [str release] when clean up?
Thanks
for point 1, yes, I need; for point 2, no, I don't
For point 3?