I am confused in this can you tell me which one is better and why?
I read somewhere that this both are used for allocing and initializing. somebody was telling me that you cant do like newWithString and all other things like that but when I tried in Xcode then Its not giving me error
NSString *AddEmail =[[NSString alloc]initWithString:@"Add Email"];
NSString *AddEmail =[NSString new];
do both will work In same way?
thank you in advance