Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to add shadow to a transparent UIView?
- view.layer.shadowColor = [UIColor colorWithWhite:.5 alpha:1].CGColor;
- view.layer.shadowRadius = 4.0f;
- view.layer.shadowPath = CGPathCreateWithRect(CGRectMake(0, 0, 50, 50), NULL);
- view.layer.shadowOpacity = 1.0f;
- view.layer.shadowOffset = CGSizeMake(1, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement