Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)dropImageShadow {
- CGMutablePathRef path = CGPathCreateMutable();
- CGRect pathrect = CGRectMake(imageView.center.x - imageView.image.size.width/2,
- imageView.center.y - imageView.image.size.height/2,
- imageView.image.size.width,
- imageView.image.size.height);
- CGPathAddRect(path, NULL, pathrect);
- previewImage.layer.shadowPath = path;
- CGPathRelease(path);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement