草庐IT

myTrainingSessions

全部标签

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

这应该有效。这是解决这个问题的众多尝试之一myTrainingSessions[indexPath.row].unpinInBackgroundWithBlock{(succ,e)->Voidinifsucc==true{//justremovefromtableviewetcself.myTrainingSessions[indexPath.row].deleteEventually()self.myTrainingSessions.removeAtIndex(indexPath.row)self.tableView.deleteRowsAtIndexPaths([indexPath

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

这应该有效。这是解决这个问题的众多尝试之一myTrainingSessions[indexPath.row].unpinInBackgroundWithBlock{(succ,e)->Voidinifsucc==true{//justremovefromtableviewetcself.myTrainingSessions[indexPath.row].deleteEventually()self.myTrainingSessions.removeAtIndex(indexPath.row)self.tableView.deleteRowsAtIndexPaths([indexPath