设置左按钮
self.navigationItem.leftBarButtonItem = self.editButtonItem()
设置右按钮
let rightButton = UIBarButtonItem(title: "+", style: UIBarButtonItemStyle.Plain, target: self, action: #selector(ViewController.add(_:)))
self.navigationItem.rightBarButtonItem = rightButton
设置颜色
controller.navigationController?.navigationBar.barTintColor = color
controller.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
隐藏后退按钮
self.navigationItem.hidesBackButton = true