Skip to content

Fix crash on update in background#29

Open
tomaz wants to merge 2 commits intoxai3:masterfrom
tomaz:fix-crash-on-update-in-background
Open

Fix crash on update in background#29
tomaz wants to merge 2 commits intoxai3:masterfrom
tomaz:fix-crash-on-update-in-background

Conversation

@tomaz
Copy link
Copy Markdown

@tomaz tomaz commented May 11, 2016

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.

tomaz added 2 commits May 11, 2016 20:58
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant