代码如下:
UITextView *testView = [UITextView new];
testView.textContainer.lineFragmentPadding = 0;
testView.textContainerInset = UIEdgeInsetsZero;
[......]
iOS中UITextView上下左右有默认padding的解决方法
Leave a reply
代码如下:
UITextView *testView = [UITextView new];
testView.textContainer.lineFragmentPadding = 0;
testView.textContainerInset = UIEdgeInsetsZero;
[......]