开发者

Non-editable UITextView requires double tap

开发者 https://www.devze.com 2023-03-31 16:27 出处:网络
I have a UITextView and I unchecked \"Editable\" in IB. The text value of the text view is programmatically changed. However, the user needs to tap on the text view for it to be altered. When \"Editab

I have a UITextView and I unchecked "Editable" in IB. The text value of the text view is programmatically changed. However, the user needs to tap on the text view for it to be altered. When "Editable" is enabled, the text view requires only 1 tap to enable, but now that I've unchecked "Editable", it's requiring 2 t开发者_StackOverflowaps to enable. How can I leave it un-editable but require only 1 tap to enable?


You could use a UILabel in a UIScrollView if you want to hide the cursor and dont need cursor-related features (cursor placement, highlighting text etc).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号