UITextview缩放? [英] UITextview with zooming?
本文介绍了UITextview缩放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过缩放工具实现UITextview?请教任何教程?
how can i achieve UITextview with zooming facility?any tutorial please?
推荐答案
您可以制作简单的UIWebView,它将是像UITextView,但缩放。
这种方式有很多优点。例如粗体文本或斜体。您将能够在一个文本中使用不同的字体。
You can make simple UIWebView and it will be like UITextView, but with zooming. This way has a lot of advantages. For example bold text, or italic. You will be able to use different fonts in one text.
分步指南:
- 创建UIWebView
- 生成html字符串。例如:
< html>< head>< / head>< body>我的文字< / body>< / html>
- 在UIWebView中加载字符串
这篇关于UITextview缩放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文