简体   繁体   中英

Parse.com adding a row to a class programmatically

I have a class called "Groups". I want a user to be able to create a group in the app. Is there an "addRow" feature with parse so that it creates a new row in the Parse class when a method is called in the app?

As mentionned in doc:

PFObject *newGroup = [PFObject objectWithClassName:@"Groups"];
newGroup[@"propertyName"] = propertyValue;
[newGroup saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error)
{
    if(error)
        NSLog(@"Error saving %@", error);
    else
        NSLog(@"Successfully added a group");
}];

More details here

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