Home > database >  Two labels having first line in alignment
Two labels having first line in alignment

Time:02-08

I have two labels placed horizontally. One is multiple line and other is having only one line. I want to display their first line should be in one line. E.g. label1= "stackoverflow community helpers" Label2 = "User" then stackoverflow word and user word should be in one lone.

Any help?

CodePudding user response:

First approach -> Use constraints give both labels the left, right, and top constraints only do not give bottom constraints, you need to be pro if you still want to provide bottom constraints :)

Second approach -> Use UITextView and disable user interaction. this one is simple and easy and not messy and more customizable.

  •  Tags:  
  • Related