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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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()



Check out the image below.



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!





Put a dummy view above textview with clear color, and show and hide that view.
– Bista
31 secs ago









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.

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty