5

I do have a UILabel and UITextView above each other, left aligned with Auto Layout. But it looks like this:

enter image description here

What's the best way to correctly align these?

swalkner
  • 16,679
  • 31
  • 123
  • 210

1 Answers1

3

The most easy way of doing this is to set content inset directly.

textView.contentInset = UIEdgeInsetsMake(-4,-4,0,0)

And the result looks like

enter image description here

Fangming
  • 24,551
  • 6
  • 100
  • 90