func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: SCREEN_HEIGHT))
let tabbarController = UITabBarController()
let rankController = UINavigationController(rootViewController: rankViewController())
let searchController = UINavigationController(rootViewController: searchViewController())
let pushController = UINavigationController(rootViewController: pushViewController())
let circleController = UINavigationController(rootViewController: circleViewController())
let moreController = UINavigationController(rootViewController: moreViewController())
tabbarController.viewControllers = [rankController,searchController,pushController,circleController,moreController]
let tabbarItem1 = UITabBarItem(title: "haha", image: UIImage(named: "CD"), selectedImage: UIImage(named: "CD"))
let tabbarItem2 = UITabBarItem(title: "haha", image: UIImage(named: "CD"), selectedImage: UIImage(named: "CD"))
let tabbarItem3 = UITabBarItem(title: "haha", image: UIImage(named: "CD"), selectedImage: UIImage(named: "CD"))
let tabbarItem4 = UITabBarItem(title: "haha", image: UIImage(named: "CD"), selectedImage: UIImage(named: "CD"))
let tabbarItem5 = UITabBarItem(title: "haha", image: UIImage(named: "CD"), selectedImage: UIImage(named: "CD"))
rankController.tabBarItem = tabbarItem1
searchController.tabBarItem = tabbarItem2
pushController.tabBarItem = tabbarItem3
circleController.tabBarItem = tabbarItem4
moreController.tabBarItem = tabbarItem5
rankController.tabBarController?.tabBar.tintColor = MAIN_RED
self.window?.rootViewController = tabbarController
self.window?.makeKeyAndVisible()
return true
}