不用更换图片就能到达换肤的效果

代码不多,就下面三行代码jiu'ke'yi'gai

 

UIImage *imgNormal = [UIImage imageNamed:@"checkNormalIcon"];

[checkBtn setImage:[imgNormal imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)] forState:UIControlStateNormal];

[checkBtn setTintColor:MainOrangeColor];

你可能感兴趣的:(ios,ImageView,UIButton)