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];
        }
    }

     
  • 相关阅读:
    Linux:闪光的宝石,智慧 (在)
    采用jqueryUI创建日期选择器
    C++学习笔记9-运算符重载
    spring mvc综合easyui点击上面菜单栏中的菜单项问题
    TCP拥塞控制 (1)
    牛顿迭代法
    【6】和作为连续序列s
    动态规划-简介
    约瑟夫环问题
    j简单的递归
  • 原文地址:https://www.cnblogs.com/cfl911014/p/5234801.html
Copyright © 2011-2022 走看看