项目作者: rhtarora

项目描述 :
Simple next and previous actions on keyboard for both UITextField/UITextView.
高级语言: Swift
项目地址: git://github.com/rhtarora/RAkeyboardtoolbar.git
创建时间: 2016-05-04T18:57:08Z
项目社区:https://github.com/rhtarora/RAkeyboardtoolbar

开源协议:

下载


RAkeyboardtoolbar

RAkeyboardToolbar will help you to add accessary toolbar on all UITextFields and UITextViews you want.

Alt Text

Create RAkeyboardAccessoryToolbar class object.

  1. var keyboardAccessory = RAkeyboardAccessoryToolbar()

Add all the textfield in array.

  1. keyboardAccessory.textFieldArray = [firstNameTextField, lastnameTextField, emailTextField,phoneTextField]

Set textfield as current view in textFieldDidBeginEditing.

  1. // MARK: - Textfield Delegates
  2. func textFieldDidBeginEditing(textField: UITextField!) {
  3. textField.inputAccessoryView = keyboardAccessory
  4. keyboardAccessory.currentView = textField
  5. }