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.
如何在应用程序中实现多个用户帐户/配置文件?我在我的项目中使用 Core Data,但我不知道如何设计我的模型。我应该为每个用户创建一个 NSPersistentStore 还是什么?还是做一些顶级实体?
拥有一个顶级实体UserSession并在其下存储所有消息、朋友等。现在您可以通过 的某些属性过滤所有内容UserSession,例如userID.
UserSession
userID