5

Like this:

NSString *stringURL = @"appname://";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

I slightly remember it was necessary to write a value-key to Info.plist. How?

openfrog
  • 39,113
  • 64
  • 218
  • 367
  • You could see a detailed illustration with the updated 2015 version for Xcode 6 here http://stackoverflow.com/a/18480723/1780492 – BootMaker May 24 '15 at 08:16

2 Answers2

7

Add this to plist screenshot.

The app will by called by @"readtext://" url

d.lebedev
  • 2,295
  • 18
  • 27
  • Xcode 4 looks completely different! Must I really repeat the bundle identifier for the URL type? It also asks for an Icon and Role. – openfrog Nov 20 '11 at 13:03
1

This seems to be the question that I answered (with screenshots & source code) here.

enter image description here

And I've posted a full walkthrough of how to do this on my blog.

Community
  • 1
  • 1
Mike Gledhill
  • 25,874
  • 6
  • 141
  • 151
  • 1
    You're welcome. It's simple, isn't it, once you can see an example ? It turns a two-hour headache into a 5-minute job !! – Mike Gledhill Aug 07 '14 at 11:47