以数字形式在UILabel上显示文本? [英] Displaying text on a UILabel in digital form?
本文介绍了以数字形式在UILabel上显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在UILabel上以数字格式显示文本(七段显示),类似于数字时钟中文本的显示方式。
How can we display text in digital format(seven segment display) on a UILabel similar to the way as text is displayed in Digital Clock.
推荐答案
简单来说,你也可以使用Apple推荐的字体。
For simple you can also use Apple recommended font.
label.font=[UIFont fontWithName:@"DBLCDTempBlack" size:60.0];
请检查这个可以找到iPhone支持的所有字体。
Please Check this to find all the font supported by iPhone.
这篇关于以数字形式在UILabel上显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文