ios - PFUsers 共享所有相同的 PFObjects?

标签 ios objective-c parse-platform pfobject pfuser

下面是图片说明;

用户 1 登录并根据 [PFUser currentUser].username 查看以下内容;

enter image description here enter image description here

但是,如果我注册一个新帐户并以用户 2 身份登录,则会共享相同的数据,并且名称会根据 [PFUser currentUser].username 进行更改;

enter image description here enter image description here

我确信有一种方法,但我不确定如何确保在登录并保护 PFUser ID 后更改的任何 PFObject 只与该用户关联?

最佳答案

它按预期工作。您应该将图像与上传图像的用户一起存储。标签 Uploaded by: *username* 应使用 "Uploaded by: "+ photoUploader.username 而不是 "Uploaded by: "+ PFUser.currentUser.username 构建

关于ios - PFUsers 共享所有相同的 PFObjects?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45874498/

相关文章:

objective-c - 在 Objective-C 中,Type* var 和 Type *var 有什么区别?

objective-c - 如何从 iPhone 的帧创建视频

ios - 检索评论数

ios - 使用 swift 在 UITableView 中添加 UIButton(跟随按钮)

ios - 如何在 iOS 中复制图像?

iOS 用户界面测试 : How to get a list of element

objective-c - 如何在调试配置中启用 ARC 优化器?

java - 将多个文本添加到 TextView

ios - UILabel 没有收到我写入的内容

ios - iOS 中 ScrollView 中的可扩展 UIView