0

How to disable editing textField manually. I have UIPickerView that I want to use as inputView. But seems I still have ability to copy paste in textfield.

I found this question and seems that's what I am looking for, but sources below don't help me

func textFieldShouldBeginEditing(textField: UITextField) -> Bool {
    questionField.resignFirstResponder();
    // Additional code here
    return false
}

Keyboard never gets screen in this case.

Community
  • 1
  • 1
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277

1 Answers1

0

IQDropDownTextField

textfield.dropDownMode = .datePicker
textfield.delegate = self

//IQDropDownTextFieldDelegate

    func textField(textField: IQDropDownTextField, didSelectDate date: NSDate?){}

I have done this way try this.

Chandan
  • 747
  • 7
  • 17