我想知道我的 WebView 何时完成加载页面。我对此很陌生,我想知道您是否有任何建议。我需要在页面加载时创建一个“加载屏幕”。这是我的基本代码:
- (void)viewDidLoad {
NSString *urlAddress = @"http://google.se";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
}
谢谢!