Custom inputView for UITextField , how do I direct input back to the text field?

前端 未结 2 1657
[愿得一人]
[愿得一人] 2020-12-28 08:56

I have set a custom inputView to my UITextField. I need a way to display the data selected in my custom inputView in the UITextf

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-28 09:18

    When sending input from your custom input view back to the textfield, note that you can (should) use the UIKeyInput protocol methods that UITextField conforms to. Namely:

    - (void)deleteBackward;
    - (void)insertText:(NSString *)text;
    

提交回复
热议问题