Skip to content

Instantly share code, notes, and snippets.

@MugunthKumar
Created March 14, 2012 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MugunthKumar/2036521 to your computer and use it in GitHub Desktop.
Save MugunthKumar/2036521 to your computer and use it in GitHub Desktop.
UIView Shadow within PNG
self.myView.layer.masksToBounds = NO;
self.myView.layer.shadowColor = [UIColor blackColor].CGColor;
self.myView.layer.shadowOffset = CGSizeMake(0.0f, 2.0f);
self.myView.layer.shadowOpacity = 0.7f;
self.myView.layer.shadowRadius = 3.0f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment