Object-C 中各数据类型转换 NSData转NSString,Byte,UIImage NSMutableData
1,NSData 与 NSString
NSData --> NSString
NSString *aString = [[NSString alloc] initWithData:adata encoding:NSUTF8StringEncoding];
NSString --> NSData
NSString *aString = @"1234";
NSData
转载
2013-07-26 14:24:59 ·
1036 阅读 ·
0 评论