string 常用操作 2018-04-28 本文已影响1人 懒惰的企鹅 NSString *str = @"Hello, world"; //全部大写 NSLog(@"uppercaseString:%@", [str uppercaseString]); //全部小写 NSLog(@"lowercaseString:%@", [str lowercaseString]); //首字母大写 NSLog(@"capitalizedString:%@", [str capitalizedString]);