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.
我想在文本文件上存储一些坐标,这些坐标对应于我将在我的应用程序中调用的图像数组。是否可以将其写入记事本并将其保存为 .txt 并能够在 xcode 中读取其中写入的坐标,还是我必须为此使用 plist 格式?
谢谢你。
可以很好地读取文本文件,但编写 plist 是微不足道的,可能会使阅读更容易。也可以直接用坐标写头文件:
// Coords.h int coordinates[4] = {1, 2, 3, 4};
取决于你到底需要什么。