2

Is it possible to make certain letters in a word have a slash through it? I have a tableview with a list of words, and I want to draw a slash through "silent letters"

What would be the best way to approach creating UILabel's to look like this?

enter image description here

4

1 回答 1

5

我想最好的办法是根本不使用UILabel

创建您自己的UIView子类,覆盖drawRect并绘制文本。然后在字母上画线。如果你有字体和文本,计算线条的位置就很简单了。

于 2013-05-26T21:18:21.330 回答