_myImage =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)]; _myImage =[UIImage imageNamed:@"shinobihead.png"]; // Set the rendering mode to respect tint color _myImage.image =[self.myImage.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; [self.view addSubview:_myImage]; // Generate a random color CGFloat hue =(arc4random() % 256 /256.0); CGFloat saturation =(arc4random() % 128 /256.0)+0.5; CGFloat brightness =(arc4random() % 128 /256.0)+0.5; UIColor* color =[UIColor colorWithHue:hue saturation:saturation brightness:brightness alpha:1]; self.myImage.tintColor =color;