UIImage 颜色渲染imageWithRenderingMo

2017-08-16  本文已影响22人  JohnayXiao
UIImageView *imgV = [[UIImageView alloc] initWithFrame:CGRectMake(100,200,100,100];

imgV.image = [[UIImage imageNamed:@"多边形-1"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];

imgV.tintColor = [UIColor greenColor];

上一篇 下一篇

猜你喜欢

热点阅读