Displaying text on a UILabel in digital form?

后端 未结 3 1115
时光取名叫无心
时光取名叫无心 2021-02-10 13:35

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.

3条回答
  •  自闭症患者
    2021-02-10 13:46

    Simple approach: use a custom font.

    Here's a UILabel subclass that allows you to embed custom fonts in your application: http://github.com/zynga/FontLabel

    Here are a whole bunch of fonts that look like digital clocks: http://www.dafont.com/theme.php?cat=302 (be sure to read the licensing information for whatever font you choose)

提交回复
热议问题