2010-10-25 59 views
1

IHAVE写代码如下 但它确实没有什么consloe它显示未知计划,无为网站不能上传使用的WebView

[webview setDeleagte self]; 
[webView loadRequest:[[NSURLRequest alloc] initWithURL:[[NSURL alloc] initWithString:sourcelinkStr]]]; 

回答

1
NSString *strURL = @"https://facebook.com"; 
NSURL *url = [NSURL URLWithString:strURL]; 
webView.delegate = self; 
[webView loadRequest:[NSURLRequest requestWithURL:url]]; 

现在, 我们必须定义方法对于的loadRequest
感谢..