首页 > 移动平台 > 详细

iOS 3D touch的实现 从零开始

时间:2016-03-02 14:56:23      阅读:219      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!