NSKeyedArchiver 的默认目录

发布于 2024-09-25 16:52:28 字数 215 浏览 0 评论 0原文

我正在使用 NSKeyedArchiver 来保存对象。我没有在路径参数中写出完整路径,因此我的文件被写入 Apple iPhone 模拟器中的某个位置。

我的文件将保存到哪个目录?

[NSKeyedArchiver archiveRootObject:self toFile:@"Vanilla"];

谢谢!

米杰

I'm using NSKeyedArchiver to save an object. I didn't write out a full path in the path argument so my file is being written somewhere in the Apple iPhone simulator.

What directory is my file going to?

[NSKeyedArchiver archiveRootObject:self toFile:@"Vanilla"];

Thanks!

mj

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄离 2024-10-02 16:52:28

我想通了。它正在将其写入根“/”。
米杰

I figured it out. It was writing it to root "/".
mj

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文