I have a UITextField for which I use UIPickerView as its inputView . The user can select a value from the collector, and the selected value is populated in my TextInput .
This circuit works fine, but with the following problems:
1) I want to disable the cursor, which is still displayed in a UITextField .
I tried disabling the UITextField , but then it does not respond to touches, and then the UIPickerView does not show - which makes it useless.
2) Since the picker is shown and the keyboard is not vein, the user clicks on the text field, the user cannot enter anything, but still can paste the text copied from another, where long press. How can I disable this?
I can not find relevant information on the Internet. Should I use Label or Button for this instead of UITextInput ?
ios uitextfield xcode swift uipickerview
rgamber
source share