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 基础聊天应用程序,我想在其中 显示我的应用程序用户的当前在线/离线状态 。对于数据库,我正在使用 parse.com,其中存储了所有聊天记录和用户详细信息。
您可以添加一个布尔列(PFUser 类),当用户打开应用程序时它会更改为 TRUE,并在应用程序关闭(或在后台)时更改为 FALSE