Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This might be something you're looking for: <a href="http://applookup.com/2010/09/iphone-apps-with-special-url-shortcuts/" rel="nofollow">http://applookup.com/2010/09/iphone-apps-with-special-url-shortcuts/</a></p> <p><strong>Updates</strong>: the link above is dead. And as cdm9002 suggested, for the love of dogs, here are the information (credits goes to <a href="http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html" rel="nofollow">iOS developer tips</a>)</p> <p>First of all, you need to use method like UIApplication:openURL: to launch an application from a webpage. For example, you can launch Apple Mail in this way:</p> <pre><code>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://info@iphonedevelopertips.com"]]; </code></pre> <p>To launch your own application, there are two things to do: register the custom URL schemes and handle the URL launch in your application.</p> <p>To register the custom URL schemes, you edit the info.plist. Below the custom scheme 'myapp' is registered.</p> <pre><code>CFBundleURLTypes CFBundleURLSchemes myapp CFBundleURLName com.yourcompany.myapp </code></pre> <p>Now, you can launch the app with the following URLs.</p> <pre><code>myapp:// myapp://some/path/here myapp://?foo=1&amp;amp;bar=2 myapp://some/path/here?foo=1&amp;amp;bar=2 </code></pre> <p>And in iPhone SDK (I think it applies to iPad as well), when launching the application in response to any of the URLs above, will send a message to the <strong>UIApplicationDelegate</strong>.</p> <p>In order to retrieve the information passed in the URL, like /some/path/here, you simply provide an implementation for the message in your delegate. </p> <pre><code>- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { // Do something with the url here } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload