Re: Transparent Image with Tint Color
Re: Transparent Image with Tint Color
- Subject: Re: Transparent Image with Tint Color
- From: Paul Scott <email@hidden>
- Date: Sun, 29 Sep 2013 14:55:30 -0700
Now, I'm wondering if there's a way to get UIWebView to apply tint color to an image URL, via some extension?
I would like my UIWebView-based app help — which references the app's images — to dynamically adopt the same tint color as the rest of the app, without resorting to saving the template-rendered image to disk.
Paul
On Sep 29, 2013, at 1:38 PM, Paul Scott <email@hidden> wrote:
> Thanks, guys! That did the trick; exactly what I needed for iOS 7 app update, and so simple!
>
> I will watch session 214 to garner what other gems might have been presented. I *did* read the iOS 7 UI Transition Guide—which I just now verified discusses UIImageRenderingModeAlwaysTemplate—but somehow I missed that; probably because I glossed over it at the time not realizing I'd need it.
>
> Paul
>
> On Sep 29, 2013, at 1:24 PM, Hunter Hillegas <email@hidden> wrote:
>
>> On iOS? If I’m understanding correctly, you want [UIImage imageWithRenderingMode:] and picking UIImageRenderingModeAlwaysTemplate.
>
> On Sep 29, 2013, at 1:27 PM, Cai Durbin <email@hidden> wrote:
>
>> If you're targeting iOS 7, then you should take a look at WWDC session 214 (Customizing Your App’s Appearance for iOS 7). It talks about using the method on UIImage called imageWithRenderingMode:, which lets you use the tintColor property to tint your generic images in code.
>>
>> If you're targeting iOS 6 and below, then check out the tutorial by thoughtbot that uses blending modes to colour an image.
>> http://robots.thoughtbot.com/post/46668544473/designing-for-ios-blending-modes
>>
>> Hope that helps,
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden