【问题标题】:Can't find keyplane that supports type 10 for keyboard iPhone-Portrait-Emoji找不到支持键盘 iPhone-Portrait-Emoji 类型 10 的键盘
【发布时间】:2015-12-18 13:23:00
【问题描述】:

我用谷歌搜索引擎制作UISearchController。当我尝试在UISearchBar 中搜索微笑时,我收到错误 找不到支持键盘 iPhone-Portrait-Emoji 的 type 10 的键盘;使用 2871905771_Portrait_iPhone-Emoji-Keyboard_Letters 并在我收到另一个错误致命错误:在展开可选值时意外发现 nilUISearchBar键盘代码

 controllerSearch.searchBar.spellCheckingType = UITextSpellCheckingType.Yes
 controllerSearch.searchBar.autocapitalizationType = UITextAutocapitalizationType.None
 controllerSearch.searchBar.keyboardType = UIKeyboardType.WebSearch

我使用 iPhone 5s 和 iPad 3。 我该如何解决?

【问题讨论】:

    标签: ios xcode swift keyboard swift2


    【解决方案1】:

    你在用模拟器吗?如果是这样,您应该取消选中您的键盘。

    iOS Simulator-> Hardware-> Keyboard -> Connect Hardware Keyboard

    这可以解决您的第一个错误:similar problems on Stackoverflow

    更新

    Google 不再允许搜索表情符号。 source

    您可以在 iOS 中禁用表情符号以避免使用表情符号进行搜索:ios 8 disable emoji

    第二个“致命错误”:只捕获由表情符号引起的 nil

    【讨论】:

    • 不,我不是。我正在使用 iPhone 5s 和 iPad 3
    • uisearchbar.text with a smile 等于 nil。
    • 首先你可以捕获一个 nil,以避免致命错误。其次,您使用的是什么 xcode 版本?我读了很多关于测试版和这个问题的文章。
    • 我使用的是版本 7.0 (7A220)。出现此错误是因为第一个错误是 Can't find keyplane that support type 10 for keyboard iPhone-Portrait-Emoji;因为在我得到 Can't find keyplane that support type 10 for keyboard iPhone-Portrait-Emoji 后,我在 searchBar 中写了一个微笑;并且可选为 nil。
    • Google 不再允许在 emoji 上搜索 source 你可以在 ios 中禁用 emoji 以避免使用 emoji 搜索 ios 8 disable emoji keyboard
    猜你喜欢
    • 2015-12-15
    • 2014-11-08
    • 2011-06-09
    • 2018-02-19
    • 2021-08-16
    • 2015-03-15
    • 2014-09-12
    • 2015-09-19
    相关资源
    最近更新 更多