nghialv / Hakuba

:cherry_blossom: Cellmodel-driven tableview manager
MIT License
474 stars 40 forks source link

Fix 'Invalid update' crash when removing all cells in tableview. #22

Closed beng341 closed 8 years ago

beng341 commented 8 years ago

When implementing a SearchBar and updating the results, a crash occurs with the message:

"Invalid update: invalid number of sections. The number of sections contained in the table view after the update must be equal to the number of sections contained in the table view before the update, plus or minus the number of sections inserted or deleted."

nghialv commented 8 years ago

Thanks for your PR. This bug has been fixed in the newest version. Please try it.