https://github.com/skyweb07/skkeyboardresigner
SKKeyboardResigner
https://github.com/skyweb07/skkeyboardresigner
Last synced: 8 months ago
JSON representation
SKKeyboardResigner
- Host: GitHub
- URL: https://github.com/skyweb07/skkeyboardresigner
- Owner: skyweb07
- License: mit
- Created: 2015-03-24T17:09:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T20:55:31.000Z (almost 10 years ago)
- Last Synced: 2025-10-23T10:59:43.766Z (8 months ago)
- Language: Objective-C
- Size: 57.6 KB
- Stars: 25
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKKeyboardResigner
[](https://travis-ci.org/skyweb07/SKKeyboardResigner)
[](http://cocoapods.org/pods/SKKeyboardResigner)
[](http://cocoapods.org/pods/SKKeyboardResigner)
[](http://cocoapods.org/pods/SKKeyboardResigner)
## Description
With SKKeyboardResigner you can forget about resigning the keyboard by yourself by adding a big button inside a view or doing some 'ñapas' like that. This library takes care of resigning the keyboard for the view you want without doing nothing.
## Usage
There are two ways of using this library:
1.
Set your UITextFields inside a view container and set the View to subclass SKKeyboardResignerView

2.
You can directly call the SKKeyboardResigner class methods in one of two ways:
```objective-c
[SKKeyboardResigner attachObserverToView:viewToObserve]; // If you only want to observe that View UITextFields subviews
```
or
```objective-c
[SKKeyboardResigner attachObserverToView:viewToObserve textFieldsToObserve:textField1, textField2, nil]; // If you want to observe any view and any UITextFields
```
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
SKKeyboardResigner is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "SKKeyboardResigner"
```
## Author
Oscar Duran, skyweb09@hotmail.es
## License
SKKeyboardResigner is available under the MIT license. See the LICENSE file for more info.