- (NSString *)removeSpaceAndNewline:(NSString *)str
{
NSString *temp = [str stringByReplacingOccurrencesOfString:@" " withString:@""];
temp = [temp stringByReplacingOccurrencesOfString:@"\r" withString:@""];
temp = [temp stringByReplacingOccurrencesOfString:@"\n" withString:@""];
temp = [temp stringByReplacingOccurrencesOfString:@"\t" withString:@""];
return temp;
}
/ * c语言中、\t \r \n 和空格什么意思
* \\反斜杠
* \a 警告
* \b 退格
* \f 换页
* \n 换行
* \r 回车
* \t 跳格
* \v 垂直跳格
* \ddd ddd 是 1、2 或 3 位八进制数字。这些转义序列作为由八进制数指定的具有数字值的字节显示。
*/