我想使用分析來保存我的iPhone應用程序的數據。當我保存靜態的東西時,它工作正常。但是,當我嘗試設置變量的值並保存它時,出現錯誤,說「隱式轉換'int'到'id'不允許使用ARC。」如何將數據保存到iOS中的解析後端?
如何解決此問題我可以將maxScore的值保存到我的Parse後端?
int maxScore = 500;
//Save round data to parse
PFObject *roundScore = [PFObject objectWithClassName:@"UserCoor"];
roundScore[@"UserLat"] = maxScore;
[roundScore saveInBackground];