我想在目标c,
中转换下面的代码func application(application: UIApplication,
continueUserActivity userActivity: NSUserActivity,
restorationHandler: (([AnyObject]!) -> Void))
-> Bool {
let userInfo = userActivity.userInfo as NSDictionary
println("Received a payload via handoff: \(userInfo)")
return true
}
请有人帮帮我。
答案 0 :(得分:3)
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
{
NSDictionary *userInfo = userActivity.userInfo;
NSLog(@"Received a payload via handoff: %@", userInfo);
return YES;
}
喜欢这个吗?