Objective C: Do I need to release the NSString in this example?
Posted
by Tattat
on Stack Overflow
See other posts from Stack Overflow
or by Tattat
Published on 2010-03-08T14:58:24Z
Indexed on
2010/03/08
15:06 UTC
Read the original article
Hit count: 183
objective-c
|memory-management
debugTestLabel.text = [[NSString alloc] initWithFormat:@"%g, %g", @"Testing String", @"I am another"];
I alloc the String and immediately assign to the text, but I don't know whether the string can auto release or not.
© Stack Overflow or respective owner