摘要:
类要实现NSCoding协议实现encodeWithCoder和initWithCoder方法先把类的instance archive成NSData,然后存起来TGTest *tt = [TGTest new];tt.num = 3;NSData *dd = [NSKeyedArchiver archivedDataWithRootObject:tt];[[NSUserDefaults stand... 阅读全文
posted @ 2017-01-14 10:38
花老🐯
阅读(150)
评论(0)
推荐(0)

浙公网安备 33010602011771号