Post

Replies

Boosts

Views

Activity

Comment on NSMutableAttributedString initialisation to prevent crash
Still happening here. In my case, I have CoreData hooked up to a UITableView, so the crash was the infamous Invalid update: invalid number of sections. The number of sections contained in the table view after the update (2) must be equal to the number of sections contained in the table view before the update (2), plus or minus the number of sections inserted or deleted (1 inserted, 0 deleted). For some reason, the CoreData transaction would be finished at the wrong time, causing the crash. You can imagine how many hours I spent on it...
May ’22