TTTableView shadow crash fix #755

Merged
merged 1 commit into from Jan 20, 2012

Projects

None yet

1 participant

@aporat
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 aporat referenced this pull request Jan 20, 2012
Closed

TTableView Shadow Crash #733

@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