I am trying to figure out how to reorder my Tableview of parse objects and get them to stay.
-
I can get the tableview items to move around but the order doesn't save and reverts back to the original order as soon as i leave the Viewcontroller and go back. I have the tableview being populated from a query every time it loads.
-
Need to figure out how to save the new index order back to parse. Not sure how to do that..here is some of the code I'm working with... or the lack there of.
I have seen people rearrange a static array but i haven't found information on rearranging a dynamic parse query...thanks in advance!
var thisArray:[PFObject] = [PFObject]()
override func tableView(tableView: UITableView, canMoveRowAtIndexPath indexPath: NSIndexPath) -> Bool {
return true
}
override func tableView(tableView: UITableView, moveRowAtIndexPath sourceIndexPath: NSIndexPath, toIndexPath destinationIndexPath: NSIndexPath) {
//How do I rearrange the parse objects on the backend?
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire