CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2016 |
Maintained by KeyboardToolBar.
No longer have to worry about keyboard cover input box, that is the KeyboardToolBar's keynote. It's easy to be used for iPhone and iPad.
platform :ios, '7.0'
pod "KeyboardToolBar"
/// import is use
#import "KeyboardToolBar.h"
/// register the UITextField to use the KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithTextField:self.textField]; // self.textField is a UITextField
/// register the UITextView to use the KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithTextView:self.textView]; // self.textView is a UITextView
/// register the UISearchBar to use the KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithSearchBar:self.searchBar]; // self.searchBar is a UISearchBar
/// you can unregister the UITextField when you never use the KeyboardToolBar again.
[KeyboardToolBar unregisterKeyboardToolBarWithTextField:self.textField];
/// you can unregister the UITextView when you never use the KeyboardToolBar again.
[KeyboardToolBar unregisterKeyboardToolBarWithTextView:self.textView];
/// you can unregister the UISearchBar when you never use the KeyboardToolBar again.
[KeyboardToolBar unregisterKeyboardToolBarWithSearchBar:self.searchBar];
platform :ios, '7.0'
pod "KeyboardToolBar"
/// 导入就是使用
/// 导入后,将自动为UITextField、UITextView和UISearchBar注册使用KeyboardToolBar
#import "KeyboardToolBar.h"
/// 以下均为可选方法,你可以不使用。
/// 为UITextField注册使用KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithTextField:self.textField];
/// 为UITextView注册使用KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithTextView:self.textView];
/// 为UISearchBar注册使用KeyboardToolBar.
[KeyboardToolBar registerKeyboardToolBarWithSearchBar:self.searchBar];
/// 以下均为可选方法,你可以不使用。
/// 你可以为目标UITextField反注册取消使用KeyboardToolBar
[KeyboardToolBar unregisterKeyboardToolBarWithTextField:self.textField];
/// 你可以为目标UITextView反注册取消使用KeyboardToolBar
[KeyboardToolBar unregisterKeyboardToolBarWithTextView:self.textView];
/// 你可以为目标UISearchBar反注册取消使用KeyboardToolBar
[KeyboardToolBar unregisterKeyboardToolBarWithSearchBar:self.searchBar];
KeyboardToolBar is released under the MIT license.