【发布时间】: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