Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想证明UITextView在 iPhone 中使用 xCode 的段落是正确的。
UITextView
我应该改变什么属性来做到这一点。
提前致谢
照片说明了一切。您可以使用Alignment控件向左、居中或右对齐文本。
Alignment
顺便说一句,当您转到界面生成器时,选择它UItextView然后设置这些属性...
UItextView
从你可以做的代码 -[yourTextView setTextAlignment:<#(UITextAlignment)#>
[yourTextView setTextAlignment:<#(UITextAlignment)#>
证明段落的正确方法是:
YOURTEXTVIEW.textAlignment = NSTextAlignmentJustified;