UIImage 颜色渲染imageWithRenderingMode

UIImageView *imgV = [[UIImageView alloc] initWithFrame:CGRectMake(100,200,100,100];

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

imgV.tintColor = [UIColor greenColor];

你可能感兴趣的:(UIImage 颜色渲染imageWithRenderingMode)