How do I get rid of the space to each side of the text in a text view?

A text view has space inside of it's text content to each of the four sides of the view - top, bottom, left and right. How do I eliminate that space so that the text is flush with the borders? I had thought that space was called "insets", but when I set the "Content insets" property to Never, I still see that space.

Replies

Both UITextView and NSTextView have a property called "textContainerInset".


>> I set the "Content insets" property to Never


You can't just make this up as you go along. "contentInset" is a UIScrollView property (and UITextView is a subclass of UIScrollView) which controls the behavior of the scroll view, not the text contents.