UITextView 中的格式设置
我在格式化 UITextView 时遇到问题。我的应用程序提取 XML,将其中一些保存到 string 中,然后在 UITextView 中显示文本。
它会理解您是否在其中输入了一个回车符,并且它会开始一个新行。但我想把段落放在那里,知道如何在不执行多个 UITextView 的情况下传递该信息吗?
谢谢:)
im having problems with formatting for a UITextView. my app pulls in XML, saves some of it to a string , and then displays the text in a UITextView.
it understands if you put a return in there, and it starts a new line. but i want to put paragraphs in there, any idea how i can pass that information without doing multiple UITextViews
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要将 XML 内容转换为文本,那么使用 UIWebView 和使用 html 的格式可能会更容易。
如果您想要完全控制格式,那么您需要转向使用 Core Text (3.2/iPad)。
If you are converting to text from XML content, then it is probably easier to use a UIWebView and format using html.
If you want total control of formatting, then you need to move to using Core Text (3.2/iPad).