开发者

fill color on imageview

开发者 https://www.devze.com 2023-01-20 15:20 出处:网络
I have t开发者_开发知识库aken a view and inserted scrollview on it using nib.Then I\'ve added an image using imageview dynamically..Now what should I do to fill color on that image.What your after isn

I have t开发者_开发知识库aken a view and inserted scrollview on it using nib. Then I've added an image using imageview dynamically..Now what should I do to fill color on that image.


What your after isn't exactly clear,

If you want to make the entire image a single colour, remove the image and set the .backgroundColor.

If you have a image that has some transparency you make a transparent colours a single colour by the same method above.

background colours can also be set in nibs; (Select imageView, goto Inspector window, first tab)

If you want to colour shapes within the image that an entirely different thing.

0

精彩评论

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

关注公众号