Permalink
Browse files

Merge pull request #755 from aporat/TTableView/shadow_crashfix

TTTableView shadow crash fix
  • Loading branch information...
2 parents c167505 + 97737cf commit ff2fe7741f242fa0d564f63b207124fa35de342f 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 ff2fe77

Please sign in to comment.