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


excuse me if explained somewhere in swift, know simple can't find answer anywhere.

so problem have class in parse called "groups" has "title" object in it. in code below, creating new class called "rankeditems" has it's own objects. 1 of objects "groupowner" , objective here assign pointer "title" object in "groups" class.

my code listed below. have wrong syntax in line of code attempts create "groupowner", have been trying figured leave in placeholder.

can point me in right direction how should create "groupowner" pointer object in "groups" class? thanks!

 // add parse group object         var itemrank:pfobject = pfobject(classname: "rankeditems")          itemrank["itemname"] = newitem         itemrank["groupowner"] = pfobject(withoutdatawithclassname: "groups", objectid: "title")         itemrank.saveinbackgroundwithblock {             (success: bool, error: nserror!) -> void in             if (success) {              } else {                 // there problem, check error.description                 println("error adding group parse")             }         }          self.typeditems.append(newitem)          self.tableview.reloaddata()       })) 


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -