Reputation: 258
I want to show remain text of line underneath it's upper line in UILabel. How can i do that? I used UILabel for to show this text and i set Lines = 0. Any help would be greatly appreciated.
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."
Upvotes: 0
Views: 54
Reputation: 8066
User Swift Multiline String Literals
From the Doc
Multiline String Literals
If you need a string that spans several lines, use a multiline string literal—a sequence of characters surrounded by three double quotation marks:
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."
"""
Upvotes: 1
Reputation: 1126
Check for the alignment, set label alignment to left,
Check if there is any initial space when you are setting the text to your label.If yes, remove that.
This will solve your issue.
Upvotes: 1