[key]UIApplicationShortcutItems[/key]
[array]
[dict]
[key]UIApplicationShortcutItemIconType[/key]
[string]UIApplicationShortcutIconTypeShare[/string] //图片类型,枚举
[key]UIApplicationShortcutItemTitle[/key]
[string]Share[/string] //title
[key]UIApplicationShortcutItemType[/key]
[string]-11.UITouchText.share[/string] //标示
[/dict]
[/array]-(void) Application: (UIApplication *) application Performactionforshortcutitem: (Uiapplicationshortcutitem *) Shortcutitem Completionhandler: (nonnull void (^) (BOOL)) completionhandler{//the demand if ([ shortcutitem.typeisequaltostring:@ " -11.uitouchtext.share"]) {[Self.rnav pushviewcontroller:[[ Kjissueviewcontroller Alloc]init] Animated:yes]; }//My main station
if ([Shortcutitem.type isequaltostring:@ " -13.uitouchtext.share"]) {
[RTVC Setselectedindex:3];
Kjserverlistviewcontroller *s=[[kjserverlistviewcontroller Alloc]init];
S.providerid=[mydefaults Readkey:kproviderid];
[Self.rnav pushviewcontroller:s Animated:yes]; }}
The implementation of IOS 3D touch starts from scratch