Skip to content

🐉keyboard sliding up UITextField/UITextView 自定义键盘样式⌨️

Notifications You must be signed in to change notification settings

KeenTeam1990/KTKeyborad

Repository files navigation

Icon

KTKeyboardManager

Often while developing an app, We ran into an issues where the iPhone keyboard slide up and cover the UITextField/UITextView. KTKeyboardManager allows you to prevent issues of the keyboard sliding up and cover UITextField/UITextView without needing you to enter any code and no additional setup required. To use KTKeyboardManager you simply need to add source files to your project.

Key Features

  1. **CODELESS**, Zero Lines Of Code

  2. Works Automatically

  3. No More UIScrollView

  4. No More Subclasses

  5. No More Manual Work

  6. No More #imports

KTKeyboardManager works on all orientations, and with the toolbar. There are also nice optional features allowing you to customize the distance from the text field, add the next/previous done button as a keyboard UIToolbar, play sounds when the user navigations through the form and more.

Screenshot

KTKeyboardManager

Video

IQKeyboardManager Demo Video

Warning

  • If you're planning to build SDK/library/framework and wants to handle UITextField/UITextView with IQKeyboardManager then you're totally going on wrong way. I would never suggest to add IQKeyboardManager as dependency/adding/shipping with any third-party library, instead of adding IQKeyboardManager you should implement your custom solution to achieve same result. IQKeyboardManager is totally designed for projects to help developers for their convenience, it's not designed for adding/dependency/shipping with any third-party library, because doing this could block adoption by other developers for their projects as well(who are not using IQKeyboardManager and implemented their custom solution to handle UITextField/UITextView thought the project).
  • If IQKeybaordManager conflicts with other third-party library, then it's developer responsibility to enable/disable IQKeyboardManager when presenting/dismissing third-party library UI. Third-party libraries are not responsible to handle IQKeyboardManager.

Requirements

Platform iOS

IQKeyboardManager:-

![Objective-c](https://img.shields.io/badge/Language-Objective C-blue.svg?style=flat)

Minimum iOS Target: iOS 8.0

Minimum Xcode Version: Xcode 6.0.1

IQKeyboardManagerSwift:-

Swift 3.1 compatible

Minimum iOS Target: iOS 8.0

Minimum Xcode Version: Xcode 8.0

Demo Project:-

Minimum Xcode Version: Xcode 8.3.2

Installation

In AppDelegate.swift, just import KTKeyboardManagerSwift framework and enable IQKeyboardManager.

import KTKeyboardManagerSwift

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

      KTKeyboardManager.sharedManager().enable = true

      return true
    }
}

Installation with Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage


#### Installation with Source Code:-


***KTKeyboardManager (Objective-C):-*** Just ***drag and drop*** `IQKeyboardManager` directory from demo project to your project. That's it.

***IQKeyboardManager (Swift):-*** ***Drag and drop*** `IQKeyboardManagerSwift` directory from demo project to your project

In AppDelegate.swift, just enable KTKeyboardManager.

```swift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

      IQKeyboardManager.sharedManager().enable = true

      return true
    }
}

LICENSE
---
Distributed under the MIT License.

Contributions
---
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author
---
If you wish to contact me, email at: [email protected]

About

🐉keyboard sliding up UITextField/UITextView 自定义键盘样式⌨️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published