如何修改 UITextView 中的显示矩形?

How can I modify the display rect in UITextView?

如上图,我想让文字与标签左对齐,怎么办?

您可以为文本容器设置边缘昆虫。这是代码行

[textView setTextContainerInset:UIEdgeInsetsMake(0, 10, 0, 0)];

或者您可以使用 属性 'setContentInset' 按照上面的建议设置边距。