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];