Class: AppDelegate

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

Instance Method Summary collapse

Instance Method Details

#application(application, didFinishLaunchingWithOptions: launchOptions) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/controller/app_delegate.rb', line 2

def application(application, didFinishLaunchingWithOptions:launchOptions)
  RM::Model.set_url("http://localhost:3000/")
  RM::Model.set_username("username")
  RM::Model.set_password("password")

  @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
  @window.rootViewController = RootViewController.alloc.init
  @window.makeKeyAndVisible
  true
end