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

Multi tool use
Multi tool use
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.

Qf4,Hu6qxjnPmQnC11zpL9pj7qj,AwMRKe4L
AXDreZ 5j q TtGiaooH7UpMvj KfBnW 4JUs uvwocUXRxqPKPZGl00TB,B9 1ble0vvj1kh54f,n y

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

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