Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere does UIApplication's handleOpenURL 'Return' to exactly?
    text
    copied!<p>I'm working on a handling a custom URL Scheme in an app and am trying to sort out: </p> <pre><code>- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url </code></pre> <p>I'm passing and successfully parsing a URL into an NSDictionary in my app but wondering "what now?" <code>handleOpenURL</code> returns a BOOL but to what? It's hard for me to debug as I haven't figure out how to have debugger running on device when it fires.</p> <p>All I do know is that <code>applicationDidFinishLaunching</code> completes before <code>handleOpenURL</code> and it appears as though my <code>rootViewController</code> is on screen.</p> <pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)application { // Load data [self initializeData]; // Configure and show the window [window addSubview:[navigationController view]]; [window makeKeyAndVisible]; } </code></pre> <p>Anyway, so, now I have this NSDictionary object in my appDelegate, how would you pass it to the rootViewController so it can do something with it in its detail view? Would I call</p> <pre><code>[[navigationController topViewController] addItemWithDictionary:theDictionary]; </code></pre> <p>before handleOpenURL's <code>return YES;</code> Or, should I create an NSDictionary property in my appDelegate and then after "Return YES;" retrieve it from my <code>rootViewController</code> (or <code>detailViewController</code> - haven't worked out which yet). If so what's the trigger? It's not clear to me where handleOpenUrl's returns are heading...and what, if any, value they have to me.</p> <p>Thanks!</p>
 

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