我如何在 Objective-C 中编写此方法 - (应用程序:继续 userActivity:restorationHandler :)?
How I can write this method in Objective-C - (application: continue userActivity: restorationHandler:)?
我正在我的 Objective-C 应用程序中实现通用链接。
请帮我把这个Swift方法翻译成Objective-C:
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
这是一个内置方法,在 Swift and Objective-C 中均有记录。 Obj-C 函数签名是
- (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler;
我正在我的 Objective-C 应用程序中实现通用链接。
请帮我把这个Swift方法翻译成Objective-C:
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
这是一个内置方法,在 Swift and Objective-C 中均有记录。 Obj-C 函数签名是
- (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler;