开发者

Xcode iPhone HOW do I interact with a web page that has alreaded loaded?

开发者 https://www.devze.com 2023-03-09 00:52 出处:网络
In viewDidLoad I have [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@\"https://w开发者_JAVA百科ebpage_etc\"]]];

In viewDidLoad I have

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://w开发者_JAVA百科ebpage_etc"]]];

which loads the web page fine, but this web page has a name, password and submit button. How do I fill in (with Xcode) the name password and hit the submit button.


Use stringByEvaluatingJavaScriptFromString: to inject some javascript that manipulates the objects in the page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号