jay patel
jay patel

Reputation: 258

How can i start this remain text underneath it's upper text in UILabel?

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."

enter image description here

Upvotes: 0

Views: 54

Answers (2)

Rukshan
Rukshan

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."
"""

enter image description here

Upvotes: 1

Madhur
Madhur

Reputation: 1126

  1. Check for the alignment, set label alignment to left,

  2. 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

Related Questions