问题
I'd like to achieve the glow effect on what I believe are UILabels (or maybe a custom control?) in this application called convert. I think the app looks pretty neat and I'm trying to achieve a similar effect for my own application
Any help?
Best regards
david
alt text http://www.davidhomes.net/convert.png
回答1:
The applicatin seems to have the glow effect only for numbers. That's 10 digits plus a few symbols (".", "+", "-", etc). An easy way to achieve this is to have a different image for each digit and symbol, and create a subclass of UIView
that can draw numbers in its drawDect
method.
回答2:
In my answer here, I describe a way to apply a glow effect to any text or vector elements drawn within a UIView or CALayer.
来源:https://stackoverflow.com/questions/1252653/iphone-interface-glow-effect-question