// 模拟接口的返回值
NSData *responseObject = [NSData data];
// nsdata转nsstring
NSString * newStr = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
// 替换无用字符
NSArray *arr =@[@"_",@"-"];
for (NSString *str in arr)
{
newStr = [newStr stringByReplacingOccurrencesOfString:str withString:@""];
}
NSLog(@"%@",newStr);