Beruflich Dokumente
Kultur Dokumente
n a iw Ta f n o
RubyMotion
HACK YOUR IOS APP LIKE NEVER BEFORE
Who Am I?
@josephku
WHATS RUBYMOTION?
A Ruby toolchain for iOS Develop and test native iOS app in Ruby Based on MacRuby Laurent Sansonetti (@lrz)
Why RubyMotion?
iOS SDK
Objective-C
iOS SDK
RubyMotion
Objective-C
WHY RUBYMOTION?
Dirty
Dirty
DEPLOYMENT
Deploy your app to beta testers by TestFlight
$ gem install motion-testflight $ rake testflight notes='Orz'
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
WTF!!
outputImageProviderFromBufferWithPixelFormat:pixelsWide:pixelsHigh:ba seAddress:bytesPerRow:releaseCallback:releaseContext:colorSpace:shoul dColorMatch:
Objective-C
NSDictionary *rules = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber NumberWithBool:TRUE],"RubyIsAwesome",nil];
RubyMotion
rules = { RubyIsAwesome: 1 }
LIMITATIONS
require eval dene_method Proc#binding Regular gems dont work
DSL
RubyMine
Any questions?
Thank you!