IOS游戏中心成就

时间:2011-04-20 19:58:39

标签: iphone objective-c ios game-center

如何通过NSCoding协议保存未上传的成就?

1 个答案:

答案 0 :(得分:0)

if ( ! [NSKeyedArchiver archiveRootObject: myInterestingObject
                   toFile: reallyCoolArchivePath ] ) {      
    NSLog(@" archiver write failed.");
} else {
    NSLog(@" archiver write SUCCEEDED.");
}

使用NSKeyedUnarchiver取回它们。