Created
October 27, 2011 10:27
-
-
Save tudormunteanu/1319229 to your computer and use it in GitHub Desktop.
shadow path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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