Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.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
获取ViewController中文本框的objective-c指针:CDVViewController html_Objective C_Cordova - Fatal编程技术网

获取ViewController中文本框的objective-c指针:CDVViewController html

获取ViewController中文本框的objective-c指针:CDVViewController html,objective-c,cordova,Objective C,Cordova,我正在编写一个cordova iOS应用程序(我不使用phone gap),它在ViewController中加载一个html文件:CDVViewController(cordova 2.5.0)。我在html文件中有一个文本框。html文件位于ViewController中 我的问题是:我在ViewController.m文件中的事件处理程序中使用什么表达式,它将计算为myTextBox,它位于html文件中 我的文本框如下所示: <input type="text" id="myTex

我正在编写一个cordova iOS应用程序(我不使用phone gap),它在ViewController中加载一个html文件:CDVViewController(cordova 2.5.0)。我在html文件中有一个文本框。html文件位于ViewController中

我的问题是:我在ViewController.m文件中的事件处理程序中使用什么表达式,它将计算为myTextBox,它位于html文件中

我的文本框如下所示:

<input type="text" id="myTextBox" >


使用UITextFieldTextDidBeginEditingNotification而不是UIKeyboardWillShowNotification。这应该允许您访问对象密钥。

no。当我在上面的NotificationCenter代码中使用该事件时,handleKeyboardWillShow不会被点击。您对cordova api的了解如何?我感觉那个事件不起作用,因为我的文本框在ViewController:CDVViewController的html中。自从给出这个答案以来,我大大简化了我的问题。-不参与活动,因为这真的不重要。