class AppDelegate
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    window.makeKeyAndVisible

    controller = PrototypeViewController.alloc.initWithNibName(nil, bundle: nil)

    window.rootViewController = controller

    true
  end
end

class AppDelegate
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    @window.makeKeyAndVisible

    controller = PrototypeViewController.alloc.initWithNibName(nil, bundle: nil)

    @window.rootViewController = controller

    true
  end
end

Make the window variable an instance variable
PrototypeMail: Make the window variable an instance variable
