如何使UITextView不可选择? [英] How can I make a UITextView not selectable?
本文介绍了如何使UITextView不可选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在UITextView中有一些文本。我不想让它可选择。我如何做到这一点?
I have some text in a UITextView. I don't want it to be selectable. How can I do this?
推荐答案
有没有UITextView的任何功能,你需要的UILabel UIScrollView?似乎只有你会失去的是自动设置contentSize,这是很容易做手动。
Are there any features of the UITextView that you need that would not be available with a UILabel in a UIScrollView? Seems like the only thing you would lose is automatically setting the contentSize, which is easy enough to do manually.
这篇关于如何使UITextView不可选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文