Created
January 20, 2015 05:06
-
-
Save pengpengliu/262327941f0bf10d6c1b to your computer and use it in GitHub Desktop.
为View添加阴影
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.view.layer.shadowColor = [UIColor blackColor].CGColor; | |
self.view.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.view.bounds].CGPath; | |
self.view.layer.shadowOpacity = 0.6f; | |
self.view.layer.shadowOffset = CGSizeMake(0, -1); | |
self.view.layer.shadowRadius = 5.0f; | |
self.view.layer.masksToBounds = NO; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment