how to show pickerview in uitextfield not the keyboard?

后端 未结 5 514
旧时难觅i
旧时难觅i 2021-01-31 23:38

I want to show a UIPickerView on becoming FirstResponder of a UITextfield not the keyboard and fill the value in text field form the picker view.

any one knows this?

5条回答
  •  借酒劲吻你
    2021-02-01 00:05

    Use [textfield setInputView:pickerView];

    Replacing the System Input Views inputView inputAccessoryView

提交回复
热议问题