zoukankan      html  css  js  c++  java
  • iOS 3D touch的实现 从零开始

    [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{
    //发需求
        if([shortcutItem.typeisEqualToString:@"-11.UITouchText.share"]){
            [self.rnav pushViewController:[[KJIssueViewController alloc]init] animated:YES];
        }
        //我的主站
        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];
        }
    }

     
  • 相关阅读:
    洛谷 P3146 [USACO16OPEN]248
    洛谷 P2633 Count on a tree
    bzoj 1040 1040: [ZJOI2008]骑士
    poj 3417 Network
    洛谷 P2149 [SDOI2009]Elaxia的路线
    2、小文件问题解决
    ☀【组件
    -_-#【JS】隐含全局变量
    -_-#flash播放器自适应
    -_-#【插件】MD5
  • 原文地址:https://www.cnblogs.com/cfl911014/p/5234801.html
Copyright © 2011-2022 走看看