【发布时间】:2012-05-02 14:24:47
【问题描述】:
Judgement webview 页面是如何加载的?让我告诉你页面正在加载。 此外,无法打开 Webview 中加载的网页,例如以下一些 URL。
- (void)awakeFromNib {
NSString *urlString = @"http://www.google.com";
// Insert code here to initialize your application
[[_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
}
- (IBAction)googleOpen:(id)sender {
[_webView setMainFrameURL:@"http://www.google.com"];
}
- (IBAction)baiduOpen:(id)sender {
[_webView setMainFrameURL:@"http://www.baidu.com"];
}
- (IBAction)yahooOpen:(id)sender {
[_webView setMainFrameURL:@"http://www.yahoo.com"];
}
如何打开带有传递参数的 URL?
【问题讨论】:
标签: objective-c cocoa webview