Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2012
1,638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. How to add shadow to a transparent UIView?
  2. view.layer.shadowColor = [UIColor colorWithWhite:.5 alpha:1].CGColor;
  3. view.layer.shadowRadius = 4.0f;
  4. view.layer.shadowPath = CGPathCreateWithRect(CGRectMake(0, 0, 50, 50), NULL);
  5. view.layer.shadowOpacity = 1.0f;
  6. view.layer.shadowOffset = CGSizeMake(1, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement