2011年8月31日 星期三

XCode WebView

create webview which load google home page.

1. in .xib, add WebView element
2. connect outlet to viewController.h
3. use the following code:

[self.myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]]];

沒有留言:

張貼留言