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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -