1

I created a ViewController with a TextView and inserted some text (with scroll). My problem is that by default this padding on top shows up and I want to remove it using storyboard and also change the padding on left and right of it. Is it possible?

enter image description here

Kayan Almeida
  • 611
  • 8
  • 15
  • 1
    Possible duplicate of [How to lose margin/padding in UITextView?](http://stackoverflow.com/questions/746670/how-to-lose-margin-padding-in-uitextview) –  Mar 24 '17 at 21:10
  • I tried the storyboard answers, without success... Even in runtime – Kayan Almeida Mar 24 '17 at 23:11
  • I don't think your issue is "padding", it might be your layout that is at wrong here now that I read your question again, so the title is misleading and you should investigate your layout by changing the background colors of the different properties (scrollcontentView, textView, self.view , etc) to visually know where things "start" and "end" in your layout before you call it out as padding. GL. –  Mar 25 '17 at 08:40
  • 1
    My problem was solved by unchecking "Adjust Scroll View Insets", this strange padding disappeared! Thanks – Kayan Almeida Mar 26 '17 at 01:34

1 Answers1

0

Click on the viewcontroller andcheck the image then go to Attribute Inspector Remove the tick on Under top bar

Kisoth Srinathan
  • 115
  • 2
  • 10