-2
Comment puis-je appliquer uppercaseString
sur NSMutableString
? Dans ce code, la valeur string2
ne change pas en seconde NSLog
:NSMutableString dans iOS
NSMutableString *string2=[[NSMutableString alloc]initWithCapacity:100];
[string2 appendFormat:@"%@ Objective C",@"Hello"];
NSLog(@"%@",string2);
[string2 uppercaseString];
NSLog(@"%@",string2);
'uppercaseString' retourne un NSString, il n'applique pas la transformation dessus. – Larme