Sha256: f8870b4c91655dfeedb9a21de86224fe3d04179b781a2a99e0602cfd8491cc96
Contents?: true
Size: 602 Bytes
Versions: 43
Compression:
Stored size: 602 Bytes
Contents
include SugarCube::Adjust include SugarCube::CoreGraphics class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) return true if RUBYMOTION_ENV == 'test' @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) ctlr = MyController.new @window.rootViewController = ctlr @window.makeKeyAndVisible end end class MyController < UIViewController def loadView super.tap do @label = 'Hi!'.uilabel @label.center = self.view.center @label.textColor = :white.uicolor self.view << @label end end end
Version data entries
43 entries across 43 versions & 1 rubygems
Version | Path |
---|---|
sugarcube-0.18.17 | app/app_delegate.rb |
sugarcube-0.18.16 | app/app_delegate.rb |
sugarcube-0.18.12 | app/app_delegate.rb |