如何通过NSCoding协议保存未上传的成就?
答案 0 :(得分:0)
if ( ! [NSKeyedArchiver archiveRootObject: myInterestingObject
toFile: reallyCoolArchivePath ] ) {
NSLog(@" archiver write failed.");
} else {
NSLog(@" archiver write SUCCEEDED.");
}
使用NSKeyedUnarchiver取回它们。