Xcode - multiple URL Schemes
问题 In my app I want to have two Different URL Schemes. Like One and Two So the user can open my app with: one://something and two://something I am using this: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { } How will the app know if the user types one or two? 回答1: handleOpenURL is deprecated, so if you're targeting iOS 4.2 or later, you should instead use application:openURL:sourceApplication:annotation: In both cases, you will be passed an NSURL, on which you can