Post

Replies

Boosts

Views

Activity

Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
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...
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
it prints the following: controller(_:didChange:at:for:newIndexPath:) nil Optional([0, 0])
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
Added all print statements and after press on country cell in VC2 nothing is printed... Seems none of this methods are called...
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
Just added the tableView.reloadData to both cases and no luck, the same error :(
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
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…
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
Yes, it was print(currency.numberOfObjects) in numberOfRowsInSection, just like you told me to do. Sure, no problem, I added the full code below.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
thank you, answered to you below in details!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
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
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Invalid update: invalid number of rows in section 0 with NSFetchedResultsController
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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on How to remove duplicate objects from CoreData in Swift?
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.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’22