1
3DTouch我無法獲取shortcutItem。用戶信息的價值
這個plist中
<dict>
<key>UIApplicationShortcutItemIconType</key>
<string>UIApplicationShortcutIconTypeShare</string>
<key>UIApplicationShortcutItemTitle</key>
<string>share</string>
<key>UIApplicationShortcutItemType</key>
<string>UITouchText.share</string>
<key>UIApplicationShortcutItemUserInfo</key>
<dict/>
<key>url</key>
<string>value1</string>
</dict>
和
-(void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler
我想shortcutItem.userInfo
if([shortcutItem.type isEqualToString:@"UITouchText.share"])
{
NSLog(@"%@",shortcutItem.userInfo[@"url"]);
}
但字典返回空