iPad popover textfield - resignFirstResponder doesn't dismiss keyboard

前端 未结 5 920
执笔经年
执笔经年 2021-02-13 06:15

I have two text fields email and password. The following code works fine when the fields are presented on a regular view but when they are on a popover, the resignFirstResponder

5条回答
  •  [愿得一人]
    2021-02-13 07:02

    I'm not too sure about this, but, as I understand the responder hierarchy, resign would work only if you have some other responder to answer.

    In a regular view, the view itself is willing. In a popup, maybe you need to do something to your popup class (like reimplement some Responder methods) in order for this to work.

提交回复
热议问题