如何在 NSMutableString 中修剪“”和“\n”?
最佳答案
NSCharacterSet* charsToTrim = [NSCharacterSet characterSetWithCharactersInString:@" \n"];
NSString* trimmedStr = [aStr stringByTrimmingCharactersInSet:charsToTrim];
关于objective-c - 如何在 NSMutableString 中修剪 ""和 "\n",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1774766/