Syntax error using Parse.com

时间:2015-06-15 14:59:24

标签: ios objective-c parse-platform

I'm developing an app and there will be user accounts. So my first step is for the user to enter their full name but every time I get this error:

[Error]: invalid field name: Full Name (Code: 105, Version: 1.7.1)

Here is my code:

//Gets text from TextField when TextField finished editing

-(IBAction)getFullName:(id)sender {

fullN = self.fullName.text;

}

//Main Method

- (IBAction)signUp:(id)sender{

    PFObject *users = [PFObject objectWithClassName:@"Users"];
    users[@"Full Name"] = fullN;

   [users saveInBackground];  
}

Please help!

1 个答案:

答案 0 :(得分:0)

Parse doesn't allow spaces in their names.

Thanks to Droppy1