Skip to content

Instantly share code, notes, and snippets.

@jeksys
Created July 20, 2011 19:02
Show Gist options
  • Save jeksys/1095655 to your computer and use it in GitHub Desktop.
Save jeksys/1095655 to your computer and use it in GitHub Desktop.
CALayer shadows
myView.layer.shadowOpacity = 0.8;
myView.layer.shadowRadius = 5.0;
myView.layer.shadowOffset = CGSizeZero;
myView.layer.shadowPath = [UIBezierPath bezierPathWithRect:myView.layer.bounds].CGPath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment