我想在UILabel的下面显示线条的下方文字。我怎样才能做到这一点?我使用UILabel来显示这个文本,我设置行 = 0.任何帮助将不胜感激。
cell.Describtionlabel.text = "Intelligient Keyboard Engine (IKE™) \n\t- When typing up IKE will give you suggestions and ideas. \nDictate \n\t- We also have audio mode which allows you to dictate your report and we type it up for you.\nSelf Transcribe\n\t- If you wish to type up yourself just select self transcribe as your delivery option."
答案 0 :(得分:1)
检查对齐情况,将标签对齐设置为左侧,
在将标签设置到标签时检查是否有任何初始空间。如果是,请将其删除。
这将解决您的问题。
答案 1 :(得分:1)
用户Swift多行字符串文字
来自Doc
多行字符串文字
如果您需要一个跨越多行的字符串,请使用多行字符串文字 - 由三个双引号括起来的字符序列:
let quotation = """
The White Rabbit put on his spectacles. "Where shall I begin,
please your Majesty?" he asked.
"Begin at the beginning," the King said gravely, "and go on
till you come to the end; then stop."
"""