Hi guys,
By calling
[[UIApplication sharedApplication] openURL:[NSURL URLWithString
"http://www.google.com"]];
my application can lunch google web page. But my original application is closed.
How can I embedded the web page into my application? Some people said we can use the code below to achieve my purpose:
- (BOOL)webView
UIWebView *)webView shouldStartLoadWithRequest
NSURLRequest *)request navigationType
UIWebViewNavigationType)navigationType {
NSLog(@"expected:%d, got:%d", UIWebViewNavigationTypeLinkClicked, navigationType);
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString
"http://www.google.com"]];
return NO;
}
return YES;
}
It seems we need to create webView. How to do it? I hope the google page will be inside on my application.
I need your help. comments or sample code are welcome.
Thank you,
Forrest
By calling
[[UIApplication sharedApplication] openURL:[NSURL URLWithString
my application can lunch google web page. But my original application is closed.
How can I embedded the web page into my application? Some people said we can use the code below to achieve my purpose:
- (BOOL)webView
NSLog(@"expected:%d, got:%d", UIWebViewNavigationTypeLinkClicked, navigationType);
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString
return NO;
}
return YES;
}
It seems we need to create webView. How to do it? I hope the google page will be inside on my application.
I need your help. comments or sample code are welcome.
Thank you,
Forrest