Created
October 17, 2013 20:21
-
-
Save aspitz/7031587 to your computer and use it in GitHub Desktop.
Code to add a shadow to a UIView. This code assumes that it's being added/executed inside a UIView or subclass of UIView
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.masksToBounds = NO; | |
self.layer.shadowOffset = CGSizeMake(2.5, 5); | |
self.layer.shadowRadius = 5; | |
self.layer.shadowOpacity = 0.5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment