I created a button in storyboard and I now want to change its tint in code. Changing the tint alone has no effect as I think I need to set the UIImageRenderingMode. However, my code is not working:
Can anyone suggest syntax to change uiimagerenderingmode
in code when the button was created in storyboard?
FOLLOWING HAS NO EFFECT:
self.callButton.imageView.tintColor = [UIColor redColor];
FOLLOWING THROWS ERROR property uiimagerenderingmodealwaystemplate not found
:
[self.callButton.image.imageWithRenderingMode UIImageRenderingModeAlwaysTemplate];
Thanks for any suggestions.