Latest 1.0.2
Homepage https://github.com/ustwo/US2KeyboardType
License MIT
Platforms ios 6.1, requires ARC
Authors

Build Status

US2KeyboardType is a category on UIApplication to determine the current UIKeyboardType state of the keyboard. Apple does not provide an API to determine the state of the keyboard, but this category helps out by looking through the keyboard hierarchy and find traces of the current state.

Blog Post

Read about the problem and the way the library is solving the issue.

tech.ustwo.com/2014/05/29/ios-uikeyboardtype-issue/

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects.

Podfile

platform :ios, '7.0'
pod "US2KeyboardType", "~> 1.0"

Usage

The keyboardType readonly property returns a UIKeyboardType.

#import "UIApplication+US2KeyboardType.h"

self.textField.keyboardType = [UIApplication sharedApplication].keyboardType;

Maintainers

License

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

githalytics.com alpha

Latest podspec

{
    "name": "US2KeyboardType",
    "version": "1.0.2",
    "summary": "US2KeyboardType is a category on UIApplication to determine the current UIKeyboardType state of the keyboard",
    "description": "                    US2KeyboardType is a category on UIApplication to determine the current UIKeyboardType state of the keyboard. Since Apple does not provide an API to determine the current state of the keyboard this category helps out by looking through the keyboard hierarchy and find traces of the current state. The `keyboardType` readonly property returns a UIKeyboardType.n",
    "homepage": "https://github.com/ustwo/US2KeyboardType",
    "license": "MIT",
    "authors": {
        "Martin Stolz": "[email protected]"
    },
    "social_media_url": "https://twitter.com/ustwo",
    "platforms": {
        "ios": "6.1"
    },
    "source": {
        "git": "https://github.com/ustwo/US2KeyboardType.git",
        "tag": "v1.0.2"
    },
    "source_files": [
        "US2KeyboardType/UIApplication+US2KeyboardType.h",
        "US2KeyboardType/UIApplication+US2KeyboardType.m"
    ],
    "public_header_files": "US2KeyboardType/UIApplication+US2KeyboardType.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This