views:

116

answers:

1

I know iPhone apps. operate like sandboxes. Meaning that they don't have access to other apps' files. And I have also managed to open a website in Safari from a Native App() using:

 openURL:[NSURL URLWithString: Website_Address] 

There are four Native apps that I have seen being opened from safari.

  1. App Store app
  2. Maps app
  3. Email app
  4. Phone app

Is there a method of opening my own app from an iphone website in Safari(maybe some html/xml/php etc code)?

+5  A: 

Yep. You just need to register your app to handle a custom url scheme. Learn more here: http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

Update: Or you can check out the official documentation from Apple.

chrissr
Thanks chrissr. I'm checking it out.
erastusnjuki
Yep. Got it. +1
erastusnjuki