码迷,mamicode.com
首页 > 移动开发 > 详细

iOS 3D touch的实现 从零开始

时间:2016-03-02 14:56:47      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
[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];
    }
}

 

iOS 3D touch的实现 从零开始

标签:

原文地址:http://www.cnblogs.com/cfl911014/p/5234801.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!