Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是IOS编程的新手。我想将 C 风格的结构写入文件并检索回来。获取文档目录路径后,我可以将字符串写入文件。但是如何在该文件中编写结构。任何人都可以帮忙吗?
普通的 C 方式的 I\O 操作运行良好,但是在特定位置写入文件需要权限。
您可能对 NSCoding 协议以及存档和序列化指南中的创建和提取存档以及编码和解码对象最感兴趣。