【问题标题】:UIKeyboardWillHideNotification is called when keyboard is switched to emoji键盘切换到表情符号时调用 UIKeyboardWillHideNotification
【发布时间】:2016-05-25 15:02:25
【问题描述】:

我目前在我的键盘上设置了 UIKeyboardWillHideNotification。当我点击键盘的表情符号按钮时,通知被调用,彻底搞乱了我的用户界面(因为我有一个带有“附加”文本字段的工具栏)。我认为这应该会发生,但是有没有办法检测键盘是否只是在切换键盘类型?我希望仅在键盘实际关闭时才调用该通知。谢谢!

【问题讨论】:

    标签: ios keyboard


    【解决方案1】:

    duplicate question

    请注意,iOS7 之后,Apple 建议使用 textInputMode.primaryLanguage,但当您访问 primaryLanguage 时,表情符号键盘将返回 nil。好像是个bug。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-29
      • 1970-01-01
      • 1970-01-01
      • 2011-10-13
      • 1970-01-01
      • 2018-02-27
      • 2015-10-16
      相关资源
      最近更新 更多