Sha256: 682a095ef338e3001f28c589bc89c41def169310bdcabe21a4fe2eea6abbb56c
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# IB rubymotion interface builder support (yes, with outlets) ## Installation Add this line to your application's Gemfile: gem 'ib' And then execute: $ bundle Or install it yourself as: $ gem install ib In your Rake file: ```ruby # -*- coding: utf-8 -*- $:.unshift("/Library/RubyMotion/lib") require 'motion/project' # if you use bundler require 'bundler/setup' Bundler.setup # require 'ib tasks' require 'ib/tasks' Motion::Project::App.setup do |app| # ... app.files.unshift IB::PATH # add ib module end ``` ## Usage Extend your controllers with IB module: ```ruby class SuperController < UIViewController # define attribute accessor attr_accessor title # define ib outlet ib_outlet :title, UILabel # define action method def onclick UIButton * button end # define ib action ib_action :onclick end ``` Run `rake design` create Storyboard or nibs (put them in resources folder) and you will be able to bind outlets and actions to your ruby code. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ib-0.0.1 | README.md |