Skip to content

Instantly share code, notes, and snippets.

@sundeepgupta
Created August 17, 2014 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sundeepgupta/52741a916118c0486813 to your computer and use it in GitHub Desktop.
Save sundeepgupta/52741a916118c0486813 to your computer and use it in GitHub Desktop.
Setup shadow on UILabel frame
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