Happie coding
Thursday, June 23, 2016
Whitespace for UITextView
There are different margins/paddings between UILabel and UITextView
Example:
If you wanted to remove the whitespace for UITextView so you can have what you expect from autolayout, do this.
self
.
commentTextView
.
textContainerInset
=
UIEdgeInsetsZero
self
.
commentTextView
.
textContainer
.
lineFragmentPadding
=
0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment