Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on update in background #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomaz
Copy link

@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.

None yet

1 participant