webView.layer.shadowRadius = 8;
webView.layer.shadowOffset = CGSizeMake(0, 0);
webView.layer.shadowColor = [[UIColor grayColor] CGColor];
webView.layer.shadowOpacity = 1;
But there is a simple solution. You just have to add these 2 lines:
webView.layer.masksToBounds = NO;
webView.layer.shadowPath = [[UIBezierPath bezierPathWithRect:webView.bounds] CGPath];
No comments:
Post a Comment