xai3 / Shoyu

Easier way to represent the structure of UITableView.
MIT License
278 stars 24 forks source link

Fix crash on update in background #29

Open tomaz opened 8 years ago

tomaz commented 8 years ago

Without this, Row would crash during didEndDisplayCell handling if table view is not on active controller (for example if there's modal controller on top of table view controller).

The solution here is to simply ignore the call if didEndDisplayCell block is not assigned on Row. This preserves existing functionality for cases where block is used but prevents the crash otherwise.

Besided crash fix, I also added ability to delete section from source.