How to tell Xcode to automatically set image rendering mode in iOS 7

In Xcode 6, you can specify any image in the asset catalog always Render As Default , Original Image or Template Image through the attribute inspector. Like this

enter image description here

But this one only works for iOS 8, not iOS 7.

Is there a way to do the same, but work with iOS 7?

Note. I am not looking for software solutions (for example, those that use things like image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; ), but for declarative, either in the panels images.xcassets , or in storyboards and knives.

+6
source share
1 answer

It looks like if you set the button type to “System” (vs “Custom”), “templating” will behave as expected in iOS 7 for button images. Unfortunately, it still does not work for button background images, and it does not allow the use of custom images for any other state than "Default".

+1
source

Source: https://habr.com/ru/post/979106/


All Articles