ios - UITextVIew secureTextEntry 不工作

标签 ios objective-c uitextfield uitextview

可能重复 Here & here (但他们没有解决我的问题)

我正在创建一个聊天 UI,其中我的文本框必须同时具有多行 功能和安全文本输入 功能。

UITextField 没有多行功能

UITextView 没有安全文本输入功能

我现在该怎么办?

Another doubt, if secureTextEntry for UITextView not going to work, why the heck they put that property inside UITextView Class

最佳答案

Only UITextField supports secureTextEntry, making a font that consists entirely of asterisks and use it in text view once you select secure option. Also be sure to disable copying.

View this link for better understanding

关于ios - UITextVIew secureTextEntry 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41440781/

相关文章:

objective-c - 当 "Title Bar"设置为不显示时,为什么我无法在 NSPanel 中获得焦点?

ios - 如何在用户快速在textField中输入键时显示键的值

iphone - 仅在 shouldChangeCharactersInRange 返回 yes 后调用方法

ios - scrollToItemAtIndexPath iOS swift

ios - 您如何以编程方式检索iOS照片流中对照片发表的评论?

ios - AppStore升级后应用程序崩溃

ios - 更改标签栏编辑 View Controller 的色调

objective-c - iBooks 如何在查看 PDF 时如此快速地呈现索引 View ?或者 : how do draw UIImages on UIScrollView directly without UIImageView?

swift - 将 UI 文本字段与数字相乘 - Swift

ios - Swift 4 中的 UICollectionViewController 未调用 cellForItemAt 函数