# Copyright 2016 <chaishushan{AT}gmail.com>. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

class AppDelegate
  def application(_application, didFinishLaunchingWithOptions:launchOptions)
    rootViewController = AppRootController.alloc.init
    rootViewController.title = '野鸡医院查询'
    rootViewController.view.backgroundColor = UIColor.whiteColor

    navigationController = UINavigationController.alloc.initWithRootViewController(rootViewController)

    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    @window.rootViewController = navigationController
    @window.makeKeyAndVisible

	# 休眠x秒, 用于显示启动画面
	NSThread.sleepForTimeInterval(1.5)

    true
  end
end
