Mais conteúdo relacionado
LT発表資料
- 3. RubyMotionってなんだ?
ベースはMacRuby
Objective-Cを使わずにiOSアプリが作れる!
iOS SDK API をそのまま使える!
でも…
- 9. 他のコードと比べてみる
RubyMotion
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
alert = UIAlertView.new
alert.message = "Hello World!"
alert.show
true
end
end
Titanium Mobile
alert("Hello World!");
MobiRuby
alert = MyAlertView._alloc.
_initWithTitle _S(“Hello”),
:message, _S(“I’m MobiRuby”),
:delegate, nil,
:cancelButtonTitle, _S(“I know!”),
:otherButtonTitles, _S(“What’s?”), nil
Notas do Editor
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n