How can I apply uppercaseString
on NSMutableString
? In this code the value in string2
is not changing in second NSLog
:
NSMutableString *string2=[[NSMutableString alloc]initWithCapacity:100];
[string2 appendFormat:@"%@ Objective C",@"Hello"];
NSLog(@"%@",string2);
[string2 uppercaseString];
NSLog(@"%@",string2);