Class: AppDelegate

Inherits:
Object
  • Object
show all
Defined in:
app/app_delegate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#windowObject

Returns the value of attribute window.



3
4
5
# File 'app/app_delegate.rb', line 3

def window
  @window
end

Instance Method Details

#application(application, didFinishLaunchingWithOptions: launchOptions) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/app_delegate.rb', line 5

def application(application, didFinishLaunchingWithOptions:launchOptions)
  controller = RootViewController.alloc.init
  navigationController = UINavigationController.alloc.initWithRootViewController(controller)
  self.window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
  self.window.rootViewController = navigationController
  self.window.makeKeyAndVisible

  true
end