Skip to content

Instantly share code, notes, and snippets.

@MKSG-MugunthKumar
Created March 14, 2012 13:35
Show Gist options
  • Save MKSG-MugunthKumar/2036521 to your computer and use it in GitHub Desktop.
Save MKSG-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