简体   繁体   中英

Syntax error using Parse.com

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!

Parse doesn't allow spaces in their names.

Thanks to Droppy 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM