Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    This worked for me in iOS 7. In fact, it's the only one of the suggested answers that worked. Commented Jan 20, 2014 at 22:31
  • Mário Carvalho any possible alternative for "setTextContainerInset" in iOS 6 ? Commented Mar 24, 2014 at 5:41
  • 1
    @Mário Carvalho the problem is, I need support for both iOS 6 and 7, so, that answer will not be feasible. I found this answer to be more meaningful but it still didn't solve my problem. I finally ended up using a container view for my UITextView. Thanks for the help though! Commented Mar 25, 2014 at 4:05
  • 3
    In Swift I used self.textView.textContainerInset = UIEdgeInsetsMake(50, 50, 50, 50); Commented Oct 25, 2014 at 7:54
  • 1
    @KayanAlmeida yes! Check insets on storyboard options Commented Mar 27, 2017 at 10:35