【问题标题】:HW kbd failed to set (null) as keyboard focus iOS Xamarin.iOS 10.2.1.5HW kbd 未能将 (null) 设置为键盘焦点 iOS Xamarin.iOS 10.2.1.5
【发布时间】:2016-11-28 04:03:52
【问题描述】:

我查看了有关同一主题的其他线程,但在那里找不到任何答案,因此创建了一个新线程。

我遇到了错误。它从我的 iPad 升级到 iOS 9.3.5 开始,它只发生在 UITextField 字段上。这是日志,但无法找到根本原因。这发生在最新最好的 Xamarin.iOS 10.2.1.5 中。

Nov 26 13:16:09 rb-iPad SpringBoard[46] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Nov 26 13:16:09 rb-iPad SpringBoard[46] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Unable to get short BSD proc info for 219: No such process
Nov 26 13:16:10 rb-iPad SpringBoard[46] <Warning>: Application 'UIKitApplication:com.safetytracker.app[0xbad8]' exited voluntarily.
Nov 26 13:16:10 rb-iPad UserEventAgent[23] <Warning>: 89823664133: id=com.safetytracker.app pid=219, state=0
Nov 26 13:16:10 rb-iPad mobile_installation_proxy[194] <Error>: 0x1f197000 handle_connection: Could not receive request from host.
Nov 26 13:16:10 rb-iPad com.apple.debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-340.3.124[218] <Warning>: 1 +0.000000 sec [00da/0a0b]: error: ::read ( 6, 0x64dd7c, 1024 ) => 0 err = No such file or directory (0x00000002)
Nov 26 13:16:10 rb-iPad com.apple.debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-340.3.124 [218] <Warning>: Exiting.

有人遇到过同样的问题吗?不知道我哪里出错了。

【问题讨论】:

  • 你有解决这个问题的办法吗?
  • 这是代码级别的问题。经过彻底调试,发现问题。我在键盘事件中有额外的逻辑。 NSNotificationCenter.DefaultCenter.AddObserver(UIKeyboard.DidShowNotification, KeyBoardUpNotification);

标签: ios iphone xamarin.ios uitextfield


【解决方案1】:

这原来是代码的问题。但令人惊讶的是,在我升级到最新版本之前,代码运行良好。

经验教训,调试代码,因为您永远不知道升级 Xamarin 后代码的哪一部分会开始失败。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-10-08
    • 1970-01-01
    • 2016-02-27
    • 1970-01-01
    • 2014-04-22
    • 1970-01-01
    • 1970-01-01
    • 2021-12-07
    相关资源
    最近更新 更多