Skip to content

Commit

Permalink
Improved rendering performance by specifying the shadow path. Thanks …
Browse files Browse the repository at this point in the history
…to Elmar for the hint.
  • Loading branch information
Colin Günther committed Aug 21, 2012
1 parent cfa5afc commit caa3a55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iOSDevWeekly/COGUNewsItemSectionHeaderView.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ - (void)nibViewDidInitialize;
[super nibViewDidInitialize];

self.layer.shadowColor = [UIColor darkGrayColor].CGColor;
self.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.bounds].CGPath;
self.layer.shadowOpacity = 0.5;
self.layer.shadowRadius = 1.0;
self.layer.shadowOffset = CGSizeMake(0, 1);
Expand Down

0 comments on commit caa3a55

Please sign in to comment.