//替换空格符号
NSString *string = @" 替换 实 验 \n";
string =
[string stringByReplacingOccurrencesOfString:@" "
withString:@""];
NSLog(@"替换后:%@",string);
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/a12a33/article/details/47747007