iOS中UITextView上下左右有默认padding的解决方法

代码如下:

UITextView *testView = [UITextView new];
testView.textContainer.lineFragmentPadding = 0;
testView.textContainerInset = UIEdgeInsetsZero;

 

Leave a Reply

Your email address will not be published.