ios - Parse Unpin Does Not Remove Object From Local Datastore -
ios - Parse Unpin Does Not Remove Object From Local Datastore -
this should work.
here 1 of many attempts figured out
mytrainingsessions[indexpath.row].unpininbackgroundwithblock{ (succ, e) -> void in if succ == true { // remove table view etc self.mytrainingsessions[indexpath.row].deleteeventually() self.mytrainingsessions.removeatindex(indexpath.row) self.tableview.deleterowsatindexpaths([indexpath], withrowanimation: .fade) // shows object still in datastore! // object should unpinned - appers in result.... var query = pfquery(classname:trainingsession.parseclassname()) query.wherekey(self.usertype(), equalto: pfuser.currentuser()) query.orderbydescending("createdat") query.fromlocaldatastore().ignoreacls() query.findobjectsinbackgroundwithblock { (objects, error) -> void in if error != nil { homecoming } if allow result = objects as? [trainingsession] { println("local results") println(result) } } } } i query after unpinning , object still there.
i've contacted back upwards team problem can't unpin object has referenced object, i'm sharing thread interested:
https://developers.facebook.com/bugs/138298746504630/
the back upwards person said design, upon request improve specification, told me tell team it.
ios parse.com
Comments
Post a Comment