0
判断webview页面是如何加载的?让我告诉你该页面正在加载。 此外,无法打开Webview中加载的网页,如下面的一些URL。如何判断webview页面被加载?
- (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?
我想在web view中打开链接地址,并设置窗口大小。设置链接地址打开窗口大小就好。 – 2012-04-22 06:57:53