Thank you I will have a look at it!
You're right. I re-write the code, instead of deleting, I just update the attributes are need to be changed.
Post
Replies
Boosts
Views
Activity
Hi Claude,
Thank you for the reply!
Here is what I have got printed:
0
0
0
0
0
0
0
0
0
0
0
0
0
1
How can I track where is that numbers came from?
I receive 1 in printing after I change isPicked value from false to true. When the app is just loaded at first all numbers are 0. Please take a look at a gif I recorded so you can understand better: https://cln.sh/wMb6lm
thank you, answered to you below in details!
Yes, it was print(currency.numberOfObjects) in numberOfRowsInSection, just like you told me to do. Sure, no problem, I added the full code below.
Sorry, updated. Also please check gif: https://cln.sh/VWaBsC. There if I comment out the VC1 tableView.endUpdates then VC2 change work, but again changes will be shown in VC1 after the app reload.
Can you advise how can I do it? Should it be logged in console? Because this is a NSFetchedResultsController delegate methods and I don’t have any specific methods to delete data (like by swipe to the left on the sell). As I thought it triggers automatically…
Just added the tableView.reloadData to both cases and no luck, the same error :(
Added all print statements and after press on country cell in VC2 nothing is printed... Seems none of this methods are called...
it prints the following: controller(_:didChange:at:for:newIndexPath:) nil Optional([0, 0])
Thank you. That's the questions for me. How to understand what is a nil: indexPath or newIndexPath. For me it seems they are both...
Thank you. So will try to understand why it's nil then...
Oh my God, Claude. It's working now!!! Can you please describe for dumb me what is the core problem there I had, what should I understand?
Sure! Thank you very much. P.S. it works without tableView.reloadData() perfectly. Not needed there.
Thank you very much, Claude. Yes, agree with you. Leave it as it is.