2016-07-26 63 views
1

有人能分享通过解析launchOptions3D触控iOS中

[launchOptions objectForKey:UIApplicationLaunchOptionsShortcutItemKey]. 

处理不同shortcutItems他/她的最佳实践当您的项目之一运行应用程序 - 如何检测这正是被窃听?

在此先感谢。

回答

0

您可以使用并获取UIApplicationShortcutItem对象。

UIApplicationShortcutItem *shortcutItem = [launchOptions objectForKey:UIApplicationLaunchOptionsShortcutItemKey]; 
NSDictionary *itemInfo = shortcutItem.userInfo; 

一旦你有,你可以检查使用shortcutItem.userInfo,它包含您所提供的信息的字典,同时创造UIApplicationShortcutItem