Created
April 4, 2013 06:58
-
-
Save demigod19892012/5308406 to your computer and use it in GitHub Desktop.
[IOS] Draw shadow under an UIView
This file contains hidden or 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
view.layer.masksToBounds = NO; | |
view.layer.shadowOffset = CGSizeMake(-15, 20); | |
view.layer.shadowRadius = 5; | |
view.layer.shadowOpacity = 0.5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment