Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diogoandre/motion-ipkeyboard
Custom iOS keyboard written in RubyMotion
https://github.com/diogoandre/motion-ipkeyboard
Last synced: about 2 months ago
JSON representation
Custom iOS keyboard written in RubyMotion
- Host: GitHub
- URL: https://github.com/diogoandre/motion-ipkeyboard
- Owner: DiogoAndre
- License: mit
- Created: 2014-02-19T05:24:13.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-16T22:11:07.000Z (over 10 years ago)
- Last Synced: 2024-04-17T04:03:02.408Z (9 months ago)
- Language: Ruby
- Size: 1.19 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#motion-ipkeyboard
A simple custom keyboard meant for typing ip addresses.
## Installing
### With Bundler
1. Add motion-ipkeyboard gem to your Gemfile
```ruby
gem 'motion-ipkeyboard'
```2. ```$ bundle install```
### Without Bundler
1. install the motion-ipkeyboard gem
```$ gem install motion-ipkeyboard```
2. add to your RubyMotion app Rakefile:```ruby
require 'rubygems'
require 'motion-ipkeyboard'
```## Usage
```ruby
# IPv6 keyboard
ipv6_input_field = UITextField.alloc.initWithFrame(CGRectMake(10, 100, 300, 45))
ipv6_input_field.setBackgroundColor(UIColor.whiteColor)
ipv6_input_field.inputView = RMIPKeyboard::Keyboard.alloc.initWithTextFieldAndLayout(ipv6_input_field,"ipv6")
ipv6_input_field.setDelegate(self)
self.view.addSubview(ipv6_input_field)# IPv4 keyboard
ipv4_input_field = UITextField.alloc.initWithFrame(CGRectMake(10, 50, 300, 45))
ipv4_input_field.setBackgroundColor(UIColor.whiteColor)
ipv4_input_field.inputView = RMIPKeyboard::Keyboard.alloc.initWithTextFieldAndLayout(ipv4_input_field,"ipv4")
ipv4_input_field.setDelegate(self)
self.view.addSubview(ipv4_input_field)
```## Screenshots
|IPv6|IPv4|
|---|---|
|![IPv6]([email protected])|![IPv4]([email protected])|## Thanks
The keyboard implementation is basicaly a translation of [doofyus/HexKeyboard](https://github.com/doofyus/HexKeyboard) to RubyMotion.