Post

Replies

Boosts

Views

Activity

Comment on TableView editingStyle
One final issue: Now I have problem to insert a new row. I use AlertController to get the new trade info, it may or may not be the (section) symbol already exist. I use self.tableView.append(newTrade) it does not thing at all, but when check trades.count confirms it did added to trades. Thank you!
May ’22
Comment on TableView editingStyle
I'm running into an interesting problem: After Add working by calling grouping.., but tableView will bring all deleted element back (as well as newly added), I can delete again, but every time I add a new item, all deleted are back, and moved items are back to original position as well. I can't figure it our....
May ’22
Comment on TableView editingStyle
Q: on moveRowAt, I can move element within section: let movedTrade = sections[fromIndexPath.section].sectionTrades.remove(at: fromIndexPath.row)         sections[to.section].sectionTrades.insert(movedTrade, at: to.row) How do I move in self.trades?
May ’22