Skip to content

Commit

Permalink
TTableView shadow crash fix on iOS 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Adar Porat committed Jan 20, 2012
1 parent c167505 commit 97737cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Three20UI/Sources/TTTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ - (void)layoutSubviews {

} else if (![[self.layer.sublayers objectAtIndex:0] isEqual:_originShadow]) {
[_originShadow removeFromSuperlayer];
[self.layer insertSublayer:_originShadow atIndex:0];

_originShadow = [self shadowAsInverse:NO];
[self.layer insertSublayer:_originShadow atIndex:0];
}

[CATransaction begin];
Expand Down

0 comments on commit 97737cf

Please sign in to comment.