Sha256: 8c28d47a7cd98a963c82a78fca56f219ed85853f5016aeca83a1f44cb1a666b5
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @director = Joybox::Configuration.setup do director display_stats: true debug repl: true, physics: [:shapes, :aabb] end @navigation_controller = UINavigationController.alloc.initWithRootViewController(@director) @navigation_controller.navigationBarHidden = true @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.setRootViewController(@navigation_controller) @window.makeKeyAndVisible true end def applicationWillResignActive(app) @director.pause if @navigation_controller.visibleViewController == @director end def applicationDidBecomeActive(app) @director.resume if @navigation_controller.visibleViewController == @director end def applicationDidEnterBackground(app) @director.stop_animation if @navigation_controller.visibleViewController == @director end def applicationWillEnterForeground(app) @director.start_animation if @navigation_controller.visibleViewController == @director end def applicationWillTerminate(app) @director.end end def applicationDidReceiveMemoryWarning(app) @director.purge_cached_data end def applicationSignificantTimeChange(app) @director.set_next_delta_time_zero true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | app/ios/app_delegate.rb |
joybox-1.1.0 | app/ios/app_delegate.rb |