2

What I want to do is open any iOS Application (Evernote, safari, Facebook, etc) from my own iOS application. For example, I have created my app with two simple buttons, the first one is named "Evernote" and the second one is named "Safari", so when I click on the "Evernote" button I want that the Evernote App launch on my iOS device, the same when I click on the "Safari" button I want that the button opens my Safari App. How can I do that? It is that possible? If it is, please tell me how. Thank you very much.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
manunez19
  • 143
  • 1
  • 5

2 Answers2

5

yes it possible if you known this app scheme reference URL. Example call Tel app:

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel://"]]){
     NSString *tell = [@"tel://" stringByAppendingString:phoneNumber];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:tell]];
}

Safari and other is same way.

List common schemes Url here : http://wiki.akosma.com/IPhone_URL_Schemes

larva
  • 4,687
  • 1
  • 24
  • 44
0

Hope this link helps you.

http://code.tutsplus.com/tutorials/ios-sdk-working-with-url-schemes--mobile-6629

If you need to open external apps from your app then follow the above link. Or if you need to open the iOS native apps like phone, mail, safari, etc, you can use URL schemes for opening the app.

RAJA
  • 1,214
  • 10
  • 13
  • Can you please click the check mark to right if the answer that helped you.. Thanks.. – RAJA Feb 17 '14 at 02:19