我从uiwebview获取网址。它第一次给出了正确的URL,即“http://www.google.com/”,然后它以相同的方法出现,并附加/blank.html在url的末尾给出http://www.google.com/blank.html。我为什么要面对这个问题?
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
[self setUpdatedUrlAddress:[[request URL] absoluteString]];
[self setUrlAddress:self.updatedUrlAddress];
return TRUE;
}