Can someone please explain the diffrence of the following and when to use what..?
and
I am struggling a bit to get the hang of this memory efficient programing with releasing objects and stuff.
Code:
NSString *string = [[NSString alloc] initWithFormat:@"hello"];
and
Code:
NSString *string = @"hello";
I am struggling a bit to get the hang of this memory efficient programing with releasing objects and stuff.