0
NSString *str = @"mario's test";
NSString *stringWithoutSpaces = [str stringByReplacingOccurrencesOfString:@" " withString:@""];
有了这个功能,我可以删除空白,但我还需要删除撇号'
:如何删除撇号和空格中的NSString
stringWithoutSpaces = "mariostest"
THK,非常好。 – Mario