Permalink
Browse files

TTableView shadow crash fix on iOS 5

  • Loading branch information...
1 parent c167505 commit 97737cf032fcbf93f6e85a3ad37a210b01ff3167 Adar Porat committed Jan 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Three20UI/Sources/TTTableView.m
@@ -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];

0 comments on commit 97737cf

Please sign in to comment.