What is the proper way to reorder a tableView?
It seems complicated to try and figure out a sequence of deletes and inserts to rearrange a table, so it seems like it would make sense to just delete the table and rebuild it. That is what I’m trying to do, but my app keeps crashing (not in simulator, but on an ipad).
I am using a tableView widget and each row has a text string and an image. The images have tap events that need to move the row to a different part of the list.
When I detect a press, I’m calling
[lua]display.remove(myTableView)
myTableView = nil
–then I rebuild the table here[/lua]
Any suggestions of a better way to reorder the table, or any insight into why I’m getting crashes? The app doesn’t crash 100% of the time I touch one of the images, but proabbly pretty close to 80% of the time (and occasionally on mac simulator and never on windows simulator). I’m thinking it might have soemthing to do with the touch event handlers not getting cleaned up properly when the display.remove is called? Maybe?
This is with daily build 2012.786
[import]uid: 115687 topic_id: 25456 reply_id: 325456[/import]