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.
我想在我正在开发的 iphone 应用程序中添加一个收藏夹选项卡。我正在使用核心数据来填充 UITableView,并希望在详细视图中能够将所选项目添加到用户的收藏夹中。
我会通过将所选项目添加到新数组来解决这个问题吗?
我对 xcode 和 iphone 编程非常陌生,因此我们将不胜感激地收到尽可能多的帮助和代码。
嘿,我一直在尝试解决这个问题,但是对于我的应用程序,数据位于数组中。你可以使用 writeToFile:atomically: 来保存文件和 arrayWithContentsOfFile 类来加载文件我希望这会有所帮助......