RubyMotion: Hack Your iOS App Like Never Before

7f403c925a51bf816b8c31c77c6f678b?s=47 Joseph Ku
December 08, 2012

RubyMotion: Hack Your iOS App Like Never Before

* Talk @ RubyConf Taiwan 2012 (2012.12.08)

7f403c925a51bf816b8c31c77c6f678b?s=128

Joseph Ku

December 08, 2012
Tweet

Transcript

  1. 5.
  2. 6.

    WHAT’S RUBYMOTION? A Ruby toolchain for iOS Develop and test

    native iOS app in Ruby Based on MacRuby Laurent Sansonetti (@lrz)
  3. 8.
  4. 11.
  5. 12.
  6. 13.
  7. 16.
  8. 17.
  9. 19.

    DEPLOYMENT Deploy your app to beta testers by TestFlight Deploy

    to App Store $ rake archive:distribution $ gem install motion-testflight $ rake testflight notes='Orz'
  10. 20.

    // Foo.h @interface Foo: NSObject { } @property (nonatomic, strong)

    NSString *bar; @end // Foo.m #import “Foo.h” @implementation Foo @synthesize bar = _bar; @end class Foo attr_accessor :bar end Objective-C RubyMotion
  11. 27.

    %4-

  12. 28.

    App.alert("BubbleWrap is awesome!") App.run_after(0.5) { p "It's #{Time.now}" } App.open_url("http://rubyconf.tw/2012/")

    Device.iphone? Device.ipad? Device.front_camera? BW::Media.play_modal("http://www.hrupin.com/wp-content/ uploads/mp3/testsong_20_sec.mp3") EM.add_timer 1.0 do puts "Great scott!" end
  13. 29.
  14. 30.
  15. 31.
  16. 32.
  17. 33.