iphone interface glow effect question

2020-06-04 03:08发布

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

2条回答
劳资没心,怎么记你
2楼-- · 2020-06-04 03:25

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.

查看更多
霸刀☆藐视天下
3楼-- · 2020-06-04 03:26

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.

查看更多
登录 后发表回答