0

PFObjectそれぞれにカテゴリVerificationsとがあるアプリを作成しようとしていますVerified_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];
4

1 に答える 1