Sunday, 15 August 2010

ios - Swift - Creating a Parse Class with an Object that is a Pointer to an object in another class -


I'm sorry if this has been explained in Swift from the past, I know it's simple, but the answer to me Can not get anywhere.

Therefore, my problem is that I have a class in parse that is called "group" in which it has a "title" object, then in the code below, I called "Randomized" I am creating a new classroom which has its own objects, is a "group owner" of the object and its purpose is to specify the pointer on the "title" object in the "group" class.

My code is listed below, clearly I have a wrong syntax in the line of code that attempts to make "GroupOnter", I am trying everything out so I thought I should call it a placeholder

Does anyone tell me in the right direction, how should I create a "group guide" in the "group" category as an indicator for an object? Thanks! PFAbject (className: "RankedItems") itemRank ["itemName"] = New ITEM Ranks ["groupOwner"] = PFObject (without data with

  // parse group object var item rank: Classname: "group", objectId: "title") itemRank.saveInBackgroundWithBlock {(success: Bool, error: NSError!) - & gt; If in zero (success) {} else {// was a problem, check the error. Display println ("Error adding group to pars")}} self.typedItems.append (newItem) self.tableView.reloadData ()}))  


No comments:

Post a Comment