简体   繁体   English

使用Parse.com的语法错误

[英]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) [错误]:无效的字段名称:全名(代码:105,版本:1.7.1)

Here is my code: 这是我的代码:

//Gets text from TextField when TextField finished editing //当TextField完成编辑时从TextField获取文本

-(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 感谢Droppy 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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