SKKeyboardResigner 0.1.0

SKKeyboardResigner 0.1.0

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2015年3月

Oscar Antonio Duran Grillo 维护。



描述

使用 SKKeyboardResigner,您可以忘记手动重签键盘,只需要在视图中添加一个大的按钮或做类似那样的“点”。这个库负责为您想要重签的视图重签键盘,无需做任何事情。

用法

使用这个库有两种方式

1. 在视图容器中设置您的 UITextFields 并将视图设置为继承 SKKeyboardResignerView

2. 直接调用 SKKeyboardResigner 类的方法

alt text

[SKKeyboardResigner attachObserverToView:viewToObserve]; // If you only want to observe that View UITextFields subviews

或者

[SKKeyboardResigner attachObserverToView:viewToObserve textFieldsToObserve:textField1, textField2, nil]; // If you want to observe any view and any UITextFields

要运行示例项目,克隆仓库,然后首先从 Example 目录运行 pod install

安装

SKKeyboardResigner 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中

pod "SKKeyboardResigner"

作者

Oscar Duran, [email protected]

许可

SKKeyboardResigner 可在 MIT 许可下使用。有关更多信息,请参阅 LICENSE 文件。