gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 00:13:01 24 4
gpt4 key购买 nike

下面是图片说明;

用户 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com