Lauching App with URL (via UIApplicationDelegate's handleOpenURL) working under iOS 4, but not under iOS 3.2

后端 未结 4 1886
终归单人心
终归单人心 2020-12-12 16:43

I have implemented UIApplicationDelegate\'s

application:didFinishLaunchingWithOptions:

and

application:handleOpenURL:
         


        
4条回答
  •  [愿得一人]
    2020-12-12 17:17

    application:handleOpenURL: is now DEPRECATED.

    As of iOS 4.2, you can use this for opening URLs:

    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url 
            sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    

    Documentation:

    https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html

提交回复
热议问题