Fix UITextView inner margin to zero

This commit is contained in:
Bob Sun 2017-04-07 10:05:30 -07:00
parent 8424cedbe6
commit 85ea29e8f6
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -13,6 +13,8 @@ class TextViewTableViewCell: ContentTableViewCell {
@IBOutlet weak var contentTextView: UITextView!
override func awakeFromNib() {
super.awakeFromNib()
self.contentTextView.textContainer.lineFragmentPadding = 0
self.contentTextView.textContainerInset = .zero
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)