Latest 0.0.1
Homepage https://github.com/xuhaoranLeo/HRKeyboardAnimation
License Copyright (c) 2016年 Leo. All rights reserved.
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

傻瓜式防键盘遮挡输入

CocoaPod:

pod 'HRKeyboardAnimation', '~> 0.0.1'

只需要三步就可以完成操作

添加观察者
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addKeyboardNotification];
}
隐藏键盘操作
[[self.view getIsEditingText] resignFirstResponder];
移除观察者
- (void)dealloc {
    [self.view removeKeyboardNotification];
}

–> 博客 <–

Latest podspec

{
    "name": "HRKeyboardAnimation",
    "version": "0.0.1",
    "summary": "u7b80u5355u7684u952eu76d8u5f39u51fau9632u906eu6321u5de5u5177",
    "homepage": "https://github.com/xuhaoranLeo/HRKeyboardAnimation",
    "license": "Copyright (c) 2016u5e74 Leo. All rights reserved.",
    "authors": {
        "u8bb8u660au7136": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/xuhaoranLeo/HRKeyboardAnimation.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "HRKeyboardAnimation",
        "HRKeyboardAnimation/Classes/*.{h,m}"
    ],
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This