ios - Injecting text into a UIWebView textField
问题 Quick question - if a textfield in a webform, does not automatically has the focus set by the form, ie you got to press the field before the keyboard pops up - am I correct to assume that field cannot be edited then? In other words - I cannot set a text for a textField by injecting javascript into it, unless it gets a focus upon loading of the website right? NOTE: I am not talking about set texts or placeholders here:-) Cheers 回答1: Yes you can! You can use Javascript to set the value: