Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/97.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HW kbd无法将(null)设置为键盘焦点iOS Xamarin.iOS 10.2.1.5_Ios_Iphone_Xamarin.ios_Uitextfield - Fatal编程技术网

HW kbd无法将(null)设置为键盘焦点iOS Xamarin.iOS 10.2.1.5

HW kbd无法将(null)设置为键盘焦点iOS Xamarin.iOS 10.2.1.5,ios,iphone,xamarin.ios,uitextfield,Ios,Iphone,Xamarin.ios,Uitextfield,我看了同一主题的其他线程,但没有得到任何答案,因此创建了一个新线程 我遇到了错误。它始于我将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

我看了同一主题的其他线程,但没有得到任何答案,因此创建了一个新线程

我遇到了错误。它始于我将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.
11月26日13:16:09 rb iPad SpringBoard[46]:HW kbd:未能将(null)设置为键盘焦点
11月26日13:16:09 rb iPad SpringBoard[46]:HW kbd:未能将(null)设置为键盘焦点
11月26日13:16:10 rb iPad SpringBoard[46]:无法获取219的简短BSD过程信息:无此类过程
11月26日13:16:10 rb iPad SpringBoard[46]:无法获取219的简短BSD过程信息:无此类过程
11月26日13:16:10 rb iPad SpringBoard[46]:无法获取219的简短BSD过程信息:无此类过程
11月26日13:16:10 rb iPad SpringBoard[46]:应用程序“UIKitApplication:com.safetytracker.app[0xbad8]”自动退出。
11月26日13:16:10 rb iPad UserEventAgent[23]:89823664133:id=com.safetytracker.app pid=219,state=0
11月26日13:16:10 rb iPad mobile_安装_代理[194]:0x1f197000句柄_连接:无法接收来自主机的请求。
11月26日13:16:10 rb iPad com.apple.debugserver-@(#)程序:debugserver项目:debugserver-340.3.124[218]:1+0.000000秒[00da/0a0b]:错误:read(6,0x64dd7c,1024)=>0 err=没有这样的文件或目录(0x00000002)
11月26日13:16:10 rb iPad com.apple.debugserver-@(#)程序:debugserver项目:debugserver-340.3.124[218]:退出。

有人面临过同样的问题吗?不确定我出了什么问题。

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


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

您有没有找到解决此问题的方法?这是代码级别的问题。彻底调试后,发现问题。我在键盘事件中有额外的逻辑。NSNotificationCenter.DefaultCenter.AddObserver(uikebox.DidShowNotification、KeyBoardUpNotification);