开发者

Change color of image

开发者 https://www.devze.com 2023-01-20 15:55 出处:网络
IS it possible to change color of image fr开发者_运维百科om code ?Answer from Change RGB color of the picture - Notes of a DeveloperWhat do u mean by change color of image? u can change the UIImageVie

IS it possible to change color of image fr开发者_运维百科om code ?


Answer from Change RGB color of the picture - Notes of a Developer


What do u mean by change color of image? u can change the UIImageView's image in code by using imageView.image = [UIImage imageNamed:@"myImage.png"]; where the myImage.png is in ur project's Resource folder. Or u can use [imageView setBackgroundColor:[UIColor redColor]]; to set ur UIImageView to red color.

0

精彩评论

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