Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个NSString对象作为NSData. 稍后这个 NSData-Object 应该返回他的 stringValue:
NSString
NSData
NSData *data; NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
string不应该是零... =D
string
dataUsingEncoding: