ios - 如何在 UITextField 中写入文本并在 uiWebview 中写入 textField 时发送文本?

标签 ios iphone objective-c uiwebview

这个想法很简单。

    ->UIWebView has opened google.com or some other website, which has textfields
    -->There is textfield.
    --->When I click on it, usually opens keyboard and you can start to write
    ---->But I want, that it shows UITextField, where I can write something, and when I 
finish writing, it should send text to textfield

我想要谷歌电子表格单元格! 现在看来,我的问题毫无意义,但这可能吗?

最佳答案

您的意思是说,当您在 UITextField 中键入时,webview 的 textFileds 中应该显示相同的值。

您可以使用 UITextFieldtextField:shouldChangeCharactersInRange:replacementString: 委托(delegate)。

详情看documentation .

关于ios - 如何在 UITextField 中写入文本并在 uiWebview 中写入 textField 时发送文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20072628/

相关文章:

iphone - 为什么我的 uialertview 每次我恢复时都会在 applicationdidbecomeActive 上被驳回?

iphone - UIScrollView添加内容时随机滚动

ios - 子类化 CAShapeLayer 的正确方法

ios - 没有UDID的ipa文件

iphone - 如何使 UITableViewCell 上的滑动删除按钮变小?

swift - 为什么@optional 修饰的属性会变成不可变的?

ios - NSUserDefaults - 如何判断 key 是否存在

ios - 如何摆脱有关 View 相互叠加的通知?

objective-c - CABasicAnimation 完成后重置

ios - 在 iOS 中创建/应用 grunge-vintage-worn- old-cratchy 过滤器