- Joined
- Oct 7, 2009
- Messages
- 14
- Reaction score
- 0
- Points
- 1
- Location
- Singapore
Code:
NSMutableString* variable = [NSMutableString stringWithFormat:@"%d %d %d",1,2,3];
Code:
NSMutableString* variable = [ [NSMutableString alloc] initWithFormat:@"%d %d %d",1,2,3];
Is there any advantage the second example have over the first accept for the fact that you'll have to release it manually later ?