Skip to content

Instantly share code, notes, and snippets.

@dennda
Created November 18, 2011 01:16
Show Gist options
  • Save dennda/1375220 to your computer and use it in GitHub Desktop.
Save dennda/1375220 to your computer and use it in GitHub Desktop.
[backgroundView addSubview:imageView];
[backgroundView addSubview:[datasetView.subviews objectAtIndex:1]];
imageView.layer.masksToBounds = YES;
imageView.layer.cornerRadius = 15.;
backgroundView.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:imageView.bounds
cornerRadius:15.].CGPath;
backgroundView.layer.cornerRadius = 15.;
backgroundView.layer.shadowColor = [[UIColor colorWithWhite:0.0 alpha:1.] CGColor];
backgroundView.layer.shadowOffset = CGSizeMake(1., 1.);
backgroundView.layer.shadowOpacity = .8;
backgroundView.layer.shadowRadius = 9.;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment