an              Taiw           nf     C   o   byRu                   RubyMotion                       HACK YOUR IOS APP LI...
Who Am I?
古傑芳
@josephku
WHAT’S                     RUBYMOTION?A Ruby toolchain for iOSDevelop and test native iOS app in RubyBased on MacRubyLaure...
Why RubyMotion?
iOS SDKFoundation FrameworkObjective-C Runtime    Objective-C
iOS SDK    Foundation Framework     Objective-C RuntimeRubyMotion             Objective-C
WHY RUBYMOTION?100% native codeKeep your editorApp Store compliant
Babe, Let’s Rock!!
Dirty
Dirty
The Last Mile
DEPLOYMENTDeploy your app to beta testers by TestFlight$ gem install motion-testflight$ rake testflight notes=OrzDeploy to...
Objective-C// Foo.h@interface Foo: NSObject{}@property (nonatomic, strong) NSString *bar;@end// Foo.m#import “Foo.h”@imple...
WTF!!outputImageProviderFromBufferWithPixelFormat:pixelsWide:pixelsHigh:baseAddress:bytesPerRow:releaseCallback:releaseCon...
Objective-CNSDictionary *rules = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber NumberWithBool:TRUE],"RubyIsAwesome"...
Babe, Rock Again!!
LIMITATIONSrequireevaldefine_methodProc#bindingRegular gems don’t work
PROS & CONSOne-time fee of $199Growing faster and fasterApple’s attitude
Is RubyMotion the future?
DSL
App.alert("BubbleWrap is awesome!")App.run_after(0.5) { p "Its #{Time.now}"    }App.open_url("http://rubyconf.tw/2012/")De...
RubyMine
IS THE RUBYMOTION                  THE FUTURE?DSLWell-known editor and IDE SupportActive community
C’mon, it’s Ruby!!
Any questions?
Thank you!
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
Upcoming SlideShare
Loading in...5
×

RubyMotion: Hack Your iOS App Like Never Before

948

Published on

* Talk @ RubyConf Taiwan 2012 (2012.12.08)

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
948
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

RubyMotion: Hack Your iOS App Like Never Before

  1. 1. an Taiw nf C o byRu RubyMotion HACK YOUR IOS APP LIKE NEVER BEFORE
  2. 2. Who Am I?
  3. 3. 古傑芳
  4. 4. @josephku
  5. 5. WHAT’S RUBYMOTION?A Ruby toolchain for iOSDevelop and test native iOS app in RubyBased on MacRubyLaurent Sansonetti (@lrz)
  6. 6. Why RubyMotion?
  7. 7. iOS SDKFoundation FrameworkObjective-C Runtime Objective-C
  8. 8. iOS SDK Foundation Framework Objective-C RuntimeRubyMotion Objective-C
  9. 9. WHY RUBYMOTION?100% native codeKeep your editorApp Store compliant
  10. 10. Babe, Let’s Rock!!
  11. 11. Dirty
  12. 12. Dirty
  13. 13. The Last Mile
  14. 14. DEPLOYMENTDeploy your app to beta testers by TestFlight$ gem install motion-testflight$ rake testflight notes=OrzDeploy to App Store$ rake archive:distribution
  15. 15. Objective-C// Foo.h@interface Foo: NSObject{}@property (nonatomic, strong) NSString *bar;@end// Foo.m#import “Foo.h”@implementation Foo@synthesize bar = _bar;@end RubyMotion class Foo attr_accessor :bar end
  16. 16. WTF!!outputImageProviderFromBufferWithPixelFormat:pixelsWide:pixelsHigh:baseAddress:bytesPerRow:releaseCallback:releaseContext:colorSpace:shoul dColorMatch:
  17. 17. Objective-CNSDictionary *rules = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber NumberWithBool:TRUE],"RubyIsAwesome",nil]; RubyMotion rules = { RubyIsAwesome: 1 } What’s the magic??
  18. 18. Babe, Rock Again!!
  19. 19. LIMITATIONSrequireevaldefine_methodProc#bindingRegular gems don’t work
  20. 20. PROS & CONSOne-time fee of $199Growing faster and fasterApple’s attitude
  21. 21. Is RubyMotion the future?
  22. 22. DSL
  23. 23. App.alert("BubbleWrap is awesome!")App.run_after(0.5) { p "Its #{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
  24. 24. RubyMine
  25. 25. IS THE RUBYMOTION THE FUTURE?DSLWell-known editor and IDE SupportActive community
  26. 26. C’mon, it’s Ruby!!
  27. 27. Any questions?
  28. 28. Thank you!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×