To run the example project, you need to clone the repo, and run pod install
from the Example directory first.
none
ZYTextInputAvoidKeyboard is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ZYTextInputAvoidKeyboard'
// 是否光标所在视图与键盘联动, YES是
self.scrollView.isAutoAdjust = YES;
// 是否距离keyboard顶部bottomMargin位置 去定位输入框
self.scrollView.isCursorAlign = YES;
// 距离keyboard顶部bottomMargin位置 定位 textView
self.scrollView.inputViewBottomMargin = 10;
无论单个or多个textView在tableView/scrollView,都适用。
ZYTextInputAvoidKeyboard is available under the MIT license. See the LICENSE file for more info.