美文网首页iOS
ios image设置颜色

ios image设置颜色

作者: 若风_412d | 来源:发表于2019-06-03 17:44 被阅读0次
ios代码改变图片的颜色
       UIImage *image = [UIImage imageNamed:@"qr-code"];
        self.ImageView.image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    [image setTintColor:[UIColor whiteColor]];


iOS背景透明

self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.02];

hex

rgb

相关文章

网友评论

    本文标题:ios image设置颜色

    本文链接:https://www.haomeiwen.com/subject/rahhxctx.html