Hi, I remove the Xcode and reinstalled a new copy and it is working now..
Post
Replies
Boosts
Views
Activity
Long story short: I end up using NSTextAttachment to saveImages on the phone. To keep track the image (cursor) location in textView, I actually saved the cursor location in table as well (var imageLocation: [String] so that I can load it back to the same location in textView. Yes, I kept the image size small, but looks pretty good on the phone.
It works well for me, but Not Perfect.
Can't install Xcode 14, that requires MacOS 12.5 and I have 11.7.
Thanks!
Somehow it starting working again..
enter the default value so to save user data entry without typing. placeholder will not do it.
mistaken post, please ignore.
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?
Thank you Claude31! Highly Apprecieated. How do I close the thread?
Thank you very much. I will spent few hours trying to understand it...
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] })?
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....
Got it. All working. Appreciated 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!
Thank you! All working perfect now! Appreciate it.