Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

MIMInputToolbar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MIMInputToolbar

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

MIMInputToolbar

A very simple gem that provides the one MIMInputToolbar class which you can use as the input accessory view for your UITextFields and UITextViews.

Installation

Add this line to your application's Gemfile:

gem 'MIMInputToolbar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install MIMInputToolbar

Usage

After installing the gem / adding it to your Gemfile, start off by creating an instance of MIMInputToolbar.

@field_bar = MIMInputToolbar.new

Give each input the instance through it's input accessor view property.

@text_field_one.inputAccessoryView = @field_bar
@text_field_two.inputAccessoryView = @field_bar
@text_field_three.inputAccessoryView = @field_bar

Then finally, give the instance all the fields (in the correct order) that it will be navigating through.

@field_bar.fields = [@text_field_one, @text_field_two, @text_field_three]

You can optionally set the title for the Previous / Next / and Done buttons like so

@field_bar.previous_title = " < "
@field_bar.next_title = " > "
@field_bar.done_title = "Complete"

This works really well with the TPKeyboardAvoiding.

Contributing

Big thank you to Gant Laborde and Mark Rickert who have been pushing this forward.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 23 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc