PPKeyboardActor
PPKeyboardActor copied to clipboard
非常轻量级的键盘遮挡输入框解决方案
PPKeyboardActor
非常轻量级的键盘遮挡输入框解决方案
-
支持传入一个数组实现多个代理的功能
-
支持UITableViewCell及UICollectionViewCell上的输入控件
- 该工具保持绝对的轻量级与简洁,没有任何冗余的代码,只为解决项目中经常遇到的键盘弹出挡住所使用的输入框的问题
- 使用十分简单,方式如下:
// actorView: 需要移动的view,常见是当前控制器的view
// 在初始化代码里写上这段
self.actor = [PPKeyboardActor keyboadWithActorView:self.view];
使用时请将 PPKeyboardActor 实例定义为强引用,以防被销毁.
如果在使用的时候出现问题与BUG,希望能及时反应,谢谢!
支持CocoaPods
PPKeyboardActor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PPKeyboardActor"
Author
License
PPKeyboardActor is available under the MIT license. See the LICENSE file for more info.