Giter Site home page Giter Site logo

tubufeng / beaplkeyboardcontrols Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apploft/aplkeyboardcontrols

0.0 1.0 0.0 66 KB

inputAccesoryView above the keyboard with done button and optional previous and next buttons

License: MIT License

Ruby 7.98% Objective-C 92.02%

beaplkeyboardcontrols's Introduction

BEAPLKeyboardControls

InputAccesoryView above the keyboard with done button and optional previous and next buttons.

Screenshot

  • close the keyboard with a done button
  • navigate between UIResponder subclasses like text fields and text views with optional previous and next buttons
  • skips hidden inputs
  • completely customizable bar button items and toolbar
  • looks like the InputAccesoryView in Safari, implemented with iOS 7 in mind

Installation

Install via cocoapods by adding this to your Podfile:

pod 'BEAPLKeyboardControls', :git => 'https://github.com/tubufeng/BEAPLKeyboardControls.git'

Usage

Import header file:

#import "BEAPLKeyboardControls.h"

Define keyboardControls as a property in your viewController and initialize it like this:

NSArray* inputChain = @[self.textField1, self.textField2, self.textField3];
self.keyboardControls = [[BEAPLKeyboardControls alloc] initWithInputFields:inputChain];
self.keyboardControls.hasPreviousNext = YES;

Customize buttons like this:

self.keyboardControls.doneButton.tintColor = [UIColor redColor];

In case you want to use the keyboardControls for other UIResponder subclasses than UITextField and UITextView, for example UISearchBar or a UIButton subclass that can become first responder, send an APLKeyboardControlsInputDidBeginEditingNotification as soon as your subclass becomes first responder, so the keyboardControls get notified about the first responder change.

beaplkeyboardcontrols's People

Contributors

tubufeng avatar michaelkamphausen avatar christophergross avatar kliffy avatar kilink avatar tinora avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.