What is the difference between
NSString *str = @"hello";
NSString *str = [NSString stringWithFormat"hello"];
NSString *str = [NSString alloc]initWithString"hello"];
If the 2nd is a convenient constructor, why we want to use/bother about "alloc-init" combination?
NSString *str = @"hello";
NSString *str = [NSString stringWithFormat"hello"];
NSString *str = [NSString alloc]initWithString"hello"];
If the 2nd is a convenient constructor, why we want to use/bother about "alloc-init" combination?