How to disable isEnable and isUserInteraction attributes but keep cursor show in UITextField?

Multi tool use


How to disable isEnable and isUserInteraction attributes but keep cursor show in UITextField?
I have a custom framework for UITextField
. For now, I want to disable two attribute as the question above but still keep the cursor show in my custom textfield. I already disable the keyboard with set the inputView = UIView()
, and that successful for hide the keyboard even show the cursor inside textField.
UITextField
inputView = UIView()
My goal is disable both attributes like above or another for can not Select All
action from my textField, but still keep the cursor available anytime.
Select All
Hope to hear the ideas from you guys. Thank a lot!
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Put a dummy view above textview with clear color, and show and hide that view.
– Bista
31 secs ago