I have an array of CLLocation data that I would like to archive. Should the NSUserDefaults system be used? Otherwise, how best to archive the
CLLocation
NSUserDefaults
4条回答 爱一瞬间的悲伤 (楼主) 2021-01-12 21:59 This is the usual method. CLLocation *myLocationToStore = ...; // (a CLLocation object) NSData *locationData = [NSKeyedArchiver archivedDataWithRootObject:myLocationToStore]; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
This is the usual method.
CLLocation *myLocationToStore = ...; // (a CLLocation object) NSData *locationData = [NSKeyedArchiver archivedDataWithRootObject:myLocationToStore];
热议问题