xcode UILabel text add outer glow effect
Asked Answered
G

1

0

How would I add an outer glow effect to a text of a UILabel. I tried to use the layer.shadow... properties but they are really just for a drop shadow.

_count.backgroundColor = [UIColor clearColor];
_count.layer.masksToBounds = NO;
_count.layer.shadowOpacity = .8;
_count.layer.shadowRadius = 5.0;
_count.layer.shadowColor = [UIColor whiteColor].CGColor;
_count.layer.shadowOffset = CGSizeMake(0.0, 0.0);

Thanks

Gumma answered 18/1, 2015 at 23:22 Comment(3)
possible duplicate of IPhone Text Glow EffectGunpowder
I wasn't able to get an outer glow effect using those techniques.Gumma
mmm Your code works fine ... Check this linkMakeshift
G
1

So I determined there was no way to put this kind effect on text there are ways to do an inner glow or a drop shadow as mentioned in the question but no way (that I can find) to add an outer glow to text. I ended up adding a png behind the text to complete a similar (yet not exactly what I was looking for) effect.

Gumma answered 21/1, 2015 at 2:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.