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