gpt4 book ai didi

ios - 解析取消固定不会从本地数据存储中删除对象

转载 作者:IT王子 更新时间:2023-10-29 08:06:42 26 4
gpt4 key购买 nike

这应该有效。

这是解决这个问题的众多尝试之一

            myTrainingSessions[indexPath.row].unpinInBackgroundWithBlock{ (succ, e) -> Void in
if succ == true {

// just remove from table view etc
self.myTrainingSessions[indexPath.row].deleteEventually()
self.myTrainingSessions.removeAtIndex(indexPath.row)
self.tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)

// Shows that my object is still in datastore!
// object should be UNPINNED - but appers in this 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 { return }
if let result = objects as? [TrainingSession] {
println("local results")
println(result)
}
}


}
}

取消固定后我做了一个查询,对象仍然存在。

最佳答案

我已经就无法取消固定具有引用对象的对象的问题联系了支持团队,因此我将与感兴趣的人共享线程:

https://developers.facebook.com/bugs/138298746504630/

支持人员说这是设计使然,但根据我改进此规范的要求,他告诉我他会告诉团队这件事。

关于ios - 解析取消固定不会从本地数据存储中删除对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29465802/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com