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.
There are two ways of using this library:
Set your UITextFields inside a view container and set the View to subclass SKKeyboardResignerView
![alt text](https://github.com/skyweb07/SKKeyboardResigner/blob/master/Resources/subclass_sample.png?raw=true"Subclass sample")
You can directly call the SKKeyboardResigner class methods in one of two ways:
[SKKeyboardResigner attachObserverToView:viewToObserve]; // If you only want to observe that View UITextFields subviews
or
[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.
SKKeyboardResigner is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SKKeyboardResigner"
Oscar Duran, skyweb09@hotmail.es
SKKeyboardResigner is available under the MIT license. See the LICENSE file for more info.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。