类似 Android 的滑动抽屉导航控制器:KYDrawerController

jopen 9年前

KYDrawerController 类似 Android 的滑动抽屉导航控制器。

import UIKit  import KYDrawerController    @UIApplicationMain  class AppDelegate: UIResponder, UIApplicationDelegate {        var window: UIWindow?        func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {          // Override point for customization after application launch.            let mainViewController   = MainViewController()          let drawerViewController = DrawerViewController()          let drawerController     = KYDrawerController()          drawerController.mainViewController = UINavigationController(              rootViewController: mainViewController          )          drawerController.drawerViewController = drawerViewController            /* Customize          drawerController.drawerDirection = .Right          drawerController.drawerWidth     = 200          */            window = UIWindow(frame: UIScreen.mainScreen().bounds)          window?.rootViewController = drawerController          window?.makeKeyAndVisible()            return true      }

类似 Android 的滑动抽屉导航控制器:KYDrawerController

项目主页:http://www.open-open.com/lib/view/home/1433900821692