Skip to content

Instantly share code, notes, and snippets.

@m-etka
Created March 17, 2014 16:22
Show Gist options
  • Save m-etka/f2ade63294f227bfa09e to your computer and use it in GitHub Desktop.
Save m-etka/f2ade63294f227bfa09e to your computer and use it in GitHub Desktop.
aView.layer.shadowColor = [UIColor blackColor].CGColor;
aView.layer.shadowOpacity = 0.7f;
aView.layer.shadowOffset = CGSizeMake(0.0f, 0.0f);
aView.layer.shadowRadius = 5.0f;
aView.layer.masksToBounds = NO;
UIBezierPath *path = [UIBezierPath bezierPathWithRect:aView.bounds];
aView.layer.shadowPath = path.CGPath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment