const char *bytes = [jsonData bytes];
NSMutableData *data = [[NSMutableData alloc] init];
for (int i = 0; i < [jsonData length]; i++){
unsigned char c = (unsigned char)bytes[i];
if (c < 32 && c != 10 && c != 14){
//Do nothing
}else{
[data appendBytes:&c length:1];
}
}
Feng
没有评论:
发表评论