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

Jason Bestor
  • 99
  • 1
  • 2
  • 10
  • possible duplicate of [IPhone Text Glow Effect](http://stackoverflow.com/questions/1420131/iphone-text-glow-effect) – Andrew Jan 18 '15 at 23:26
  • I wasn't able to get an outer glow effect using those techniques. – Jason Bestor Jan 19 '15 at 00:05
  • mmm Your code works fine ... Check this [link](http://benscheirman.com/2011/09/creating-a-glow-effect-for-uilabel-and-uibutton/) – Husam May 26 '15 at 14:28

1 Answers1

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.

Jason Bestor
  • 99
  • 1
  • 2
  • 10