In Xcode 6 you can tell any image in an assets catalog to always Render As
Default
, Original Image
or Template Image
through the Attributes inspector. Like this
But this only works for iOS 8, not for iOS 7.
Is there a way to do the same but working on iOS 7 as well?
Note: I'm not looking for programmatic solutions (like those using things like image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
), but for a declarative one, either in images.xcassets
panels or in storyboards and nibs.
It looks like if you set the button type to "System" (vs "Custom"), "templating" behaves as expected under iOS 7 for button images. Unfortunately, it still does not work for button background images and it does not allow using custom images for any other state than "Default".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With