TTTableView shadow crash fix #755

Merged
merged 1 commit into from Jan 20, 2012

Conversation

Projects
None yet
1 participant
Contributor

aporat commented Jan 20, 2012

TTTableView with shadows (self.showTableShadows = YES) will cause a crash under iOS 5 when the user tries to scroll inside the table.

This crash happens because the layoutSubviews function tries to use the shadow layer after the layer was already removed and released. This is an issue in iOS 5, because layers are automatically released when removeFromSuperlayer is called.

The fix creates a new shadow layer after the original shadow layer is released and removed. Generally, a layer shouldn't be used after removeFromSuperlayer is called.

Closes #733 as well.

aporat referenced this pull request Jan 20, 2012

Closed

TTableView Shadow Crash #733

@aporat aporat pushed a commit that referenced this pull request Jan 20, 2012

Adar Porat Merge pull request #755 from aporat/TTableView/shadow_crashfix
TTTableView shadow crash fix
ff2fe77

@aporat aporat merged commit ff2fe77 into facebookarchive:development Jan 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment