Created
August 17, 2014 20:16
-
-
Save sundeepgupta/52741a916118c0486813 to your computer and use it in GitHub Desktop.
Setup shadow on UILabel frame
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
CALayer *layer = self.nameLabel.layer; | |
layer.shadowColor = [UIColor blackColor].CGColor; | |
layer.shadowRadius = 3; | |
layer.shadowOpacity = 0.9; | |
layer.shadowOffset = CGSizeMake(0.2, 2); | |
layer.masksToBounds = NO; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment