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...
Post
Replies
Boosts
Views
Activity
it prints the following: controller(_:didChange:at:for:newIndexPath:) nil Optional([0, 0])
Added all print statements and after press on country cell in VC2 nothing is printed... Seems none of this methods are called...
Just added the tableView.reloadData to both cases and no luck, the same error :(
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…
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.
Yes, it was print(currency.numberOfObjects) in numberOfRowsInSection, just like you told me to do. Sure, no problem, I added the full code below.
thank you, answered to you below in details!
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
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?
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.