Latest 1.0
Homepage https://github.com/silence0201/KeyboardShortcutManager
License MIT
Platforms ios 7.0, requires ARC
Authors

KeyboardShortcutManager

简介

调试时,添加键盘快捷键

使用

  1. 导入

    • 导入KeyboardShortcutManager文件夹
    • Pod安装

      pod 'KeyboardShortcutManager', '~> 1.0'
  2. 导入头文件

    #import "SIKeyboardShortcutManager.h"
  3. 简单使用

    #if TARGET_OS_SIMULATOR
    [SIKeyboardShortcutManager sharedManager].enabled = YES ;
    [[SIKeyboardShortcutManager sharedManager] registerSimulatorShortcutWithKey:@"n" modifiers:UIKeyModifierCommand action:^{
        NSLog(@"%@",@"Method") ;
        ImageViewController *vc = [[ImageViewController alloc]init] ;
        [[[[[UIApplication sharedApplication] delegate] window] rootViewController]
        presentViewController:vc animated:YES completion:nil];
    }] ;
    #endif

KeyboardShortcutManager

KeyboardShortcutManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "KeyboardShortcutManager",
    "version": "1.0",
    "summary": "KeyboardShortcutManager.",
    "description": "KeyboardShortcutManager for SIMULATOR",
    "homepage": "https://github.com/silence0201/KeyboardShortcutManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Silence": "[email protected]"
    },
    "social_media_url": "https://twitter.com/Silencee0201",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/silence0201/KeyboardShortcutManager.git",
        "tag": "1.0"
    },
    "source_files": [
        "KeyboardShortcutManager",
        "KeyboardShortcutManager/**/*.{h,m}"
    ],
    "exclude_files": "KeyboardShortcutManager/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This