开发者

How to set the shadow color for Image?

开发者 https://www.devze.com 2023-03-10 06:51 出处:网络
Hai, I am doing one application, in that i want to provide the shadow color for image after setting the border color. But border color and s开发者_Go百科hadow color both are different. So please tell

Hai, I am doing one application, in that i want to provide the shadow color for image after setting the border color. But border color and s开发者_Go百科hadow color both are different. So please tell me any more suggestions.


Have you looked at CALayer? It has a property called shadowColor. This works you are referring to an UIImageView object. If you're referring to the image, you can look at CGContextSetShadowWithColor to add an image using Quartz.

0

精彩评论

暂无评论...
验证码 换一张
取 消