解析 - PFObject不更新

时间:2013-10-13 18:51:24

标签: iphone ios database parse-platform

我正在尝试创建一个应用,其中每个PFObject都有类别VerificationsVerified_By

Verifications由一个数字组成,Verified_By是一个字符串数组

当我尝试更新类别并保存PFObject时,数据是正确的并在本地保存,但是当我调用saveInBackground时,它不会在数据浏览器中更新。

以下是我的更新代码:

 if (![verifiedBy containsObject:[ViewController getUserName]]) {
    //havent verified
    NSMutableArray *newArray = [NSMutableArray arrayWithArray:verifiedBy];
    [newArray addObject:[ViewController getUserName]];
    [toModify setObject:newArray forKey:@"Verified_By"];
    [toModify incrementKey:@"Verifications"];
    [toModify saveInBackground];


    [[[UIAlertView alloc] initWithTitle:@"Verified!" message:@"You have successfully verified this" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] show];
}
else {
    [[[UIAlertView alloc] initWithTitle:@"Already Verified" message:@"You have already verified this" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] show];

1 个答案:

答案 0 :(得分:1)

事实证明我没有正确的ParseACL需求(public read = true,public write = true)