实现delegate: shouldStartLoadWithRequest

1
2
3
4
5
6
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType 
{
	NSURL* url = [request  URL];
	self.urlEdit.text = [url absoluteString];
	return YES;
}