How to handle if app is opened from URL in didFinishLaunchingWithOptions method?
ios, objective-c
Solution
You can inspect `launchOptions` passed to `- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions`.
Look for section `Launch Options Keys` in reference docs, specifically `UIApplicationLaunchOptionsURLKey`
Problem
When iOS application is opened from some URL `AppDelegates's` methods are called in such a sequence: ``` 1. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 2. - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url ``` How to know in `didFinishLaunchingWithOptions` method if application was opened from URL or not. May be there are some launching options which I miss?