获取ViewController中文本框的objective-c指针:CDVViewController html
我正在编写一个cordova iOS应用程序(我不使用phone gap),它在ViewController中加载一个html文件:CDVViewController(cordova 2.5.0)。我在html文件中有一个文本框。html文件位于ViewController中 我的问题是:我在ViewController.m文件中的事件处理程序中使用什么表达式,它将计算为myTextBox,它位于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
<input type="text" id="myTextBox" >
使用UITextFieldTextDidBeginEditingNotification而不是UIKeyboardWillShowNotification。这应该允许您访问对象密钥。no。当我在上面的NotificationCenter代码中使用该事件时,handleKeyboardWillShow不会被点击。您对cordova api的了解如何?我感觉那个事件不起作用,因为我的文本框在ViewController:CDVViewController的html中。自从给出这个答案以来,我大大简化了我的问题。-不参与活动,因为这真的不重要。