简体   繁体   English

iphone界面发光效果问题

[英]iphone interface glow effect question

I'd like to achieve the glow effect on what I believe are UILabels (or maybe a custom control?) in this application called convert. 我想在这个名为convert的应用程序中实现我认为是UILabel(或者可能是自定义控件?)的发光效果。 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 替代文字http://www.davidhomes.net/convert.png

在我的答案在这里 ,我描述了一种应用发光效果到一个UIView或CALayer的内得出的任何文本或矢量元素。

The applicatin seems to have the glow effect only for numbers. 应用似乎只对数字有发光效果。 That's 10 digits plus a few symbols (".", "+", "-", etc). 这是10位数加上几个符号(“。”,“+”,“ - ”等)。 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. 实现此目的的一种简单方法是为每个数字和符号设置不同的图像,并创建UIView的子类,可以在其drawDect方法中绘制数字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM