parse.com - How to save data to Parse backend in iOS? -
i trying use parse save data iphone app. when save static things, works fine. however, when try set value of variable , save it, error saying, “implicit conversion of ‘int’ ‘id’ disallowed arc.”
how fix can save value of maxscore parse backend?
int maxscore = 500; //save round data parse pfobject *roundscore = [pfobject objectwithclassname:@"usercoor"]; roundscore[@"userlat"] = maxscore; [roundscore saveinbackground];
as error says, expects a pointer objective-c object, , instead of object, you're passing in primitive type (int). may want use
nsnumber *maxscore = [nsnumber numberwithint:500];
Comments
Post a Comment