Hi, On some app , I see when one link touched , use safari for open link and quit from current app. I want use from this feature for run messages app from other app , Can I do this? if yes, how can? thanks,...
A:
The only way I know to start external application is to use UIApplication openUrl
. The documentation says
An object representing a URL (Universal Resource Locator). UIKit supports the http:, https:, tel:, and mailto: schemes.
If you meant e-mail application, you can pass link according to mailto: scheme. The simplest example is @"mailto:[email protected]"
.
iPhone beginner
2010-04-19 10:37:57
I want open Message application ! there are any way?
Fatemeh
2010-04-20 05:11:04
+5
A:
You need to use -[UIApplication openURL:]. For example, you can use
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"http://www.stackoverflow.com"]]
Note this will also switch to the new app. An application can register the URL schemes it supports using its plist.
Ben Gottlieb
2010-04-19 10:38:58
Voted for this over the other as you mentioned how to register your own URL schemes.
Jon Grant
2010-04-19 10:41:06
A:
I do it , I write sms in mailto place and write phone number in front of it. and app work correct,
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"sms:09120000000"]];
Fatemeh
2010-04-20 07:28:56