Skip to content

Instantly share code, notes, and snippets.

@tudormunteanu
Created October 27, 2011 10:27
Show Gist options
  • Save tudormunteanu/1319229 to your computer and use it in GitHub Desktop.
Save tudormunteanu/1319229 to your computer and use it in GitHub Desktop.
shadow path
self.layer.shadowColor = [[UIColor blackColor] CGColor];
self.layer.masksToBounds = NO;
self.layer.shadowOffset = CGSizeMake(5, 5);
self.layer.shadowOpacity = 0.4;
CGPathRef shadowPath = [UIBezierPath bezierPathWithRect:CGRectInset(self.layer.bounds, 0, 0)].CGPath;
self.layer.shadowPath = shadowPath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment