swift - display pfquery on table view controller -


i ad developing ios application swift. using parse backend have 2 classes class has(name , owner> pointer _user class )
member( member_user> pointer user sign class, objectid > pointer class)

i wanted classes member sign with. able retrieve exact classes problem not getting name of class displayed in cell

 required init(coder adecoder: nscoder) {     super.init(coder: adecoder)     self.parseclassname = "class"     self.textkey = "name"     self.pulltorefreshenabled = true     self.paginationenabled = true     self.objectsperpage = 20 }    override func queryfortable() -> pfquery! {       var query1 = pfquery(classname: "class")     //query1.wherekey("member_user", equalto: pfuser.currentuser())     var query2 = pfquery(classname: "member")    query2.wherekey("member_user", equalto: pfuser.currentuser())     query2.wherekey("objectid", matcheskey: "objectid", inquery: query1)     return query2}    override func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath, object: pfobject) -> pftableviewcell {       var cell = tableview.dequeuereusablecellwithidentifier("cell") pftableviewcell!     cell.backgroundcolor = uicolor.clearcolor()      if cell == nil {         cell = pftableviewcell(style: uitableviewcellstyle.default, reuseidentifier: "cell")     }      cell.textlabel?.text =         object["name"] string!     return cell  } 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -