Reputation: 21
I have created my customURL scheme lets call it myapp://
I want to us a qr code to access an otherwise hidden screen in my app using the customURL myapp://secret
I have explored various tutorials but cannot get them to work.
I'm after code I can insert under didFinishLoadingWithOptions
something that says the customURL is myapp://secret now do this method any help would be appreciated.
Upvotes: 0
Views: 241
Reputation: 124997
I'm after code I can insert under didFinishLoadingWithOptions
something that says the customURL is myapp://secret now do this method any help would be appreciated.
That's not quite how it works. You should write your -application:didFinishLaunchingWithOptions:
such that it returns YES if your app can open the URL, and then implement -application:openURL:sourceApplication:annotation:
to actually open the URL.
Upvotes: 1