I found that using NSKeyedArchiver filed a class to a file inside (eg abc.xml), this xml is not open, with a variety of encoding are not open, do not know what encoding the file to write it?
There is usually an NSData we use data can be converted into an NSString (with that stringWithData method), for example, I used to visit a webservices NSMutableHttpRequest method accessible to an NSData data, and then I tried to put him into a NSString and print out.
With NSKeyedArchiver archive process will generate an NSData type of data, but I can not try this NSData into NSString. Why, I think it is and coding related.
I now want to do NSKeyedArchiver archiving process will generate NSData into NSString, how to do it?
No comments:
Post a Comment