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];