NSString* headerData=@"阿斯达阿萨德按时大大a
大声道
啊实打实";
headerData = [headerData stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; //去除掉首尾的空白字符和换行字符
headerData = [headerDatastringByReplacingOccurrencesOfString:@" " withString:@""];
headerData = [headerDatastringByReplacingOccurrencesOfString:@" " withString:@""];
上一篇 计算某个字符串包含另一个的数量