<p align="center">
<img src="https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/Demo/Resources/icon.png" alt="Icon"/>
</p>
<H1 align="center">IQKeyboardManager</H1>
<p align="center">
<img src="https://img.shields.io/github/license/hackiftekhar/IQKeyboardManager.svg"
alt="GitHub license"/>
[![Build Status](https://travis-ci.org/hackiftekhar/IQKeyboardManager.svg)](https://travis-ci.org/hackiftekhar/IQKeyboardManager)
[![Coverage Status](http://img.shields.io/coveralls/hackiftekhar/IQKeyboardManager/master.svg)](https://coveralls.io/r/hackiftekhar/IQKeyboardManager?branch=master)
[![Code Health](https://landscape.io/github/hackiftekhar/IQKeyboardManager/master/landscape.svg?style=flat)](https://landscape.io/github/hackiftekhar/IQKeyboardManager/master)
Often while developing an app, We ran into an issues where the iPhone keyboard slide up and cover the `UITextField/UITextView`. `IQKeyboardManager` 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 `IQKeyboardManager` you simply need to add source files to your project.
#### Key Features
[![Issue Stats](http://issuestats.com/github/hackiftekhar/iqkeyboardmanager/badge/pr?style=flat)](http://issuestats.com/github/hackiftekhar/iqkeyboardmanager)
[![Issue Stats](http://issuestats.com/github/hackiftekhar/iqkeyboardmanager/badge/issue?style=flat)](http://issuestats.com/github/hackiftekhar/iqkeyboardmanager)
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`
`IQKeyboardManager` 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
[![IQKeyboardManager](https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/v3.3.0/Screenshot/IQKeyboardManagerScreenshot.png)](http://youtu.be/6nhLw6hju2A)
[![Settings](https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/v3.3.0/Screenshot/IQKeyboardManagerSettings.png)](http://youtu.be/6nhLw6hju2A)
## GIF animation
[![IQKeyboardManager](https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/v3.3.0/Screenshot/IQKeyboardManager.gif)](http://youtu.be/6nhLw6hju2A)
## Video
<a href="http://youtu.be/WAYc2Qj-OQg" target="_blank"><img src="http://img.youtube.com/vi/WAYc2Qj-OQg/0.jpg"
alt="IQKeyboardManager Demo Video" width="480" height="360" border="10" /></a>
## Tutorial video by @rebeloper ([#1135](https://github.com/hackiftekhar/IQKeyboardManager/issues/1135))
@rebeloper demonstrated two videos on how to implement this library at it's core:
<a href="https://www.youtube.com/playlist?list=PL_csAAO9PQ8aTL87XnueOXi3RpWE2m_8v" target="_blank"><img src="https://raw.githubusercontent.com/hackiftekhar/IQKeyboardManager/master/Screenshot/ThirdPartyYoutubeTutorial.jpg"
alt="Youtube Tutorial Playlist"/></a>
https://www.youtube.com/playlist?list=PL_csAAO9PQ8aTL87XnueOXi3RpWE2m_8v
## 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 IQKeyboardManager 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](https://img.shields.io/badge/Platform-iOS-blue.svg?style=fla)]()
| | Language | Minimum iOS Target | Minimum Xcode Version |
|------------------------|----------|--------------------|-----------------------|
| IQKeyboardManager | Obj-C | iOS 8.0 | Xcode 8.2.1 |
| IQKeyboardManagerSwift | Swift | iOS 8.0 | Xcode 8.2.1 |
| Demo Project | | | Xcode 9.0 |
**Note**
- 3.3.7 is the last iOS 7 supported version.
#### Swift versions support
| Swift | Xcode | IQKeyboardManagerSwift |
|-------------|-------|------------------------|
| 4.X | 9.0 | >= 5.0.0 |
| 4.0 | 9.0 | 5.0.0 |
| 3.1 | 8.3 | 4.0.10 |
| 3.0 (3.0.2) | 8.2 | 4.0.8 |
| 2.2 or 2.3 | 7.3 | 4.0.5 |
| 2.1.1 | 7.2 | 4.0.0 |
| 2.0 | 7.0 | 3.3.3.1 |
**Note**
- `5.0.0` is backward compatible till Swift 3.
Installation
==========================
#### Installation with CocoaPods
[![CocoaPods](https://img.shields.io/cocoapods/v/IQKeyboardManager.svg)](http://cocoadocs.org/docsets/IQKeyboardManager)
***IQKeyboardManager (Objective-C):*** IQKeyboardManager is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile: ([#9](https://github.com/hackiftekhar/IQKeyboardManager/issues/9))
```ruby
pod 'IQKeyboardManager' #iOS8 and later
pod 'IQKeyboardManager', '3.3.7' #iOS7
```
***IQKeyboardManager (Swift):*** IQKeyboardManagerSwift is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile: ([#236](https://github.com/hackiftekhar/IQKeyboardManager/issues/236))
*Swift 4.0 (Xcode 9.0)*
```ruby
pod 'IQKeyboardManagerSwift'
```
*Or you can choose version you need based on Swift support table from [Requirements](README.md#requirements)*
```ruby
pod 'IQKeyboardManagerSwift', '5.0.0'
```
In AppDelegate.swift, just import IQKeyboardManagerSwift framework and enable IQKeyboardManager.
```swift
import IQKeyboardManagerSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
IQKeyboardManager.sharedManager().enable = true
return true
}
}
```
#### Installation with Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
```bash
$ brew update
$ brew install carthage
```
To integrate `IQKeyboardManger` or `IQKeyboardManagerSwift` into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "hackiftekhar/IQKeyboardManager"
```
Run `carthage` to build the frameworks and drag the appropriate framework (`IQKeyboardManager.framework` or `IQKeyboardManagerSwift.framework`) into your Xcode project according to your need. Make sure to add only one framework and not both.
#### Installation with Source Code
[![Github tag](https://img.shields.io/github/tag/hackiftekhar/iqkeyboardmanager.svg)]()
***IQKeyboardManager (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 ena
没有合适的资源?快使用搜索试试~ 我知道了~
TabelView+TextView自适应高度
共111个文件
h:50个
m:21个
png:8个
需积分: 9 12 下载量 60 浏览量
2018-04-08
12:09:19
上传
评论 1
收藏 209KB ZIP 举报
温馨提示
在cell上添加UItextView,输入的时候自适应高度以及防止键盘遮盖
资源推荐
资源详情
资源评论
收起资源包目录
TabelView+TextView自适应高度 (111个子文件)
.DS_Store 6KB
.DS_Store 6KB
IQUIView+IQKeyboardToolbar.h 16KB
IQKeyboardManager.h 14KB
IQKeyboardManagerConstants.h 6KB
IQUIView+Hierarchy.h 4KB
IQKeyboardReturnKeyHandler.h 3KB
IQUITextFieldView+Additions.h 2KB
IQTitleBarButtonItem.h 2KB
IQKeyboardManagerConstantsInternal.h 2KB
IQBarButtonItem.h 2KB
IQToolbar.h 2KB
IQUIWindow+Hierarchy.h 2KB
IQUIViewController+Additions.h 2KB
IQNSArray+Sort.h 2KB
IQUIScrollView+Additions.h 2KB
IQTextView.h 1KB
IQPreviousNextView.h 1KB
TextTableViewCell.h 592B
AppDelegate.h 309B
TextsView.h 268B
ViewController.h 247B
IQKeyboardManagerConstantsInternal.h 91B
IQUIViewController+Additions.h 86B
IQUIViewController+Additions.h 86B
IQUITextFieldView+Additions.h 85B
IQUITextFieldView+Additions.h 85B
IQUIView+IQKeyboardToolbar.h 83B
IQKeyboardManagerConstants.h 83B
IQUIView+IQKeyboardToolbar.h 83B
IQKeyboardManagerConstants.h 83B
IQUIScrollView+Additions.h 82B
IQUIScrollView+Additions.h 82B
IQUIWindow+Hierarchy.h 78B
IQUIWindow+Hierarchy.h 78B
IQTitleBarButtonItem.h 77B
IQTitleBarButtonItem.h 77B
IQUIView+Hierarchy.h 76B
IQUIView+Hierarchy.h 76B
IQPreviousNextView.h 75B
IQPreviousNextView.h 75B
IQKeyboardReturnKeyHandler.h 73B
IQKeyboardReturnKeyHandler.h 73B
IQBarButtonItem.h 72B
IQNSArray+Sort.h 72B
IQBarButtonItem.h 72B
IQTextView.h 68B
IQTextView.h 68B
IQToolbar.h 66B
IQToolbar.h 66B
IQKeyboardManager.h 64B
IQKeyboardManager.h 64B
Contents.json 2KB
Podfile.lock 237B
Manifest.lock 237B
IQKeyboardManager.m 95KB
IQUIView+IQKeyboardToolbar.m 36KB
IQKeyboardReturnKeyHandler.m 18KB
IQUIView+Hierarchy.m 11KB
IQToolbar.m 8KB
IQTitleBarButtonItem.m 6KB
TextsView.m 5KB
IQTextView.m 4KB
IQBarButtonItem.m 4KB
TextTableViewCell.m 3KB
IQUITextFieldView+Additions.m 3KB
IQNSArray+Sort.m 2KB
IQUIScrollView+Additions.m 2KB
IQUIWindow+Hierarchy.m 2KB
AppDelegate.m 2KB
IQUIViewController+Additions.m 2KB
ViewController.m 2KB
IQPreviousNextView.m 1KB
main.m 366B
Pods-TableView+TextView自适应高度Demo-dummy.m 168B
IQKeyboardManager-dummy.m 138B
Pods-TableView+TextView自适应高度Demo-acknowledgements.markdown 1KB
README.md 9KB
LICENSE.md 1KB
project.pbxproj 41KB
project.pbxproj 20KB
IQKeyboardManager-prefix.pch 195B
Pods-TableView+TextView自适应高度Demo-acknowledgements.plist 2KB
Info.plist 1KB
xcschememanagement.plist 591B
xcschememanagement.plist 360B
IDEWorkspaceChecks.plist 238B
IQButtonBarArrowDown@3x.png 2KB
IQButtonBarArrowUp@3x.png 2KB
IQButtonBarArrowRight@3x.png 2KB
IQButtonBarArrowLeft@3x.png 2KB
IQButtonBarArrowLeft@2x.png 2KB
IQButtonBarArrowRight@2x.png 2KB
IQButtonBarArrowUp@2x.png 2KB
IQButtonBarArrowDown@2x.png 2KB
Podfile 131B
Pods-TableView+TextView自适应高度Demo-resources.sh 6KB
Pods-TableView+TextView自适应高度Demo-frameworks.sh 5KB
LaunchScreen.storyboard 2KB
Main.storyboard 2KB
共 111 条
- 1
- 2
资源评论
偏执的磊子
- 粉丝: 26
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功