THANKS! : how do I delete row after removed from array: tableView.deleteRows(at: [indexPath], with: .fade)?
Post
Replies
Boosts
Views
Activity
Thank you! All working perfect now! Appreciate it.
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!
Got it. All working. Appreciated it!
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....
what is the difference between following two ones code?
-sections[indexPath.section].trades.remove(at: indexPath.row)
and
-self.trades.removeAll(where : { $0.id == sections[indexPath.section].trades[indexPath.row] })?
Thank you very much. I will spent few hours trying to understand it...
Thank you Claude31! Highly Apprecieated. How do I close the thread?
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?
mistaken post, please ignore.
enter the default value so to save user data entry without typing. placeholder will not do it.
Somehow it starting working again..
Thanks!
Can't install Xcode 14, that requires MacOS 12.5 and I have 11.7.