项目详细代码见我的Github,欢迎star。
1.侧栏菜单的实现中,导入了SlideMenuControllerSwift三方库来实现一个滑动菜单。需要注意的适合,需要在AppDelegate.swift进行设置。
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
self.window?.backgroundColor = UIColor.whiteColor()
//一定要在这里添加导航栏才可以实现Back功能
let nav = UINavigationController(rootViewControlle