Hello, I want to integrate some links on my iphone application. That is when user touch on the button say "Yahoo" then Yahoo's page will be opened and then all the functionalities of Yahoo mail has proceeds. How can I do that? I have a bit idea about NSURL, but not much. Please help me for that. Thanks in advance..
+1
A:
In the action method of the target put something like:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.com"]];
HyLian
2009-07-08 11:30:09
2009-07-08 11:32:48
To come back to ur application, you will have to tap on the app's icon in springboard. If you want to stay within the app and open the URL, use a UIWebView instead
lostInTransit
2009-07-08 12:01:49
+3
A:
To open the page in Mobile Safari, you need to implement something like the following:
NSURL *url = [NSUR URLWithString:@"http://www.google.com"];
[[UIApplication sharedApplication] openURL:url];
You could return to your application using Custom URL Schemes (for more information see the iPhone Application Programming Guide), but since you want to access sites over which you have no control, I presume that isn't an option? Could you use a UIWebView control within your app instead?
Edd
2009-07-08 11:56:01