答案 0 :(得分:0)
你可以这样做,
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(50, 50, 50, 50)];
imageView.image = [UIImage imageNamed:@"Synch"]; // your face image here
imageView.image = [imageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
// imageView.backgroundColor = [UIColor yellowColor];
imageView.tintColor = [UIColor redColor]; // set different tint color here and image will get that color
[self.view addSubview:imageView];
图片应为png
个文件。同步图像在示例中为png格式。
希望这会有所帮助:)
答案 1 :(得分:0)