0
UIViewController *webViewController = [[[UIViewController alloc] init] autorelease];
UIWebView *uiWebView = [[[UIWebView alloc] initWithFrame: CGRectMake(0,0,320,480)] autorelease];
NSString *urlst=[[NSString alloc]initWithString:[catWebArray objectAtIndex:indexPath.row]];
[uiWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlst]]];
uiWebView.scalesPageToFit=YES;
[webViewController.view addSubview: uiWebView];
[self.navigationController pushViewController:webViewController animated:YES];
其中數組包含ADRESS像www.google.com,www.yahoo.com。 由於這些是由用戶添加http://可能會添加或不添加。所以如何我可以加載它在uiwebview?如何處理未知的方案,對webview什麼都不做?
感謝您的回覆。通過webservice收到的數據。 – user928622 2012-02-28 10:59:51