         addPicBtn.setImage(UIImage(named: "sav_start"), for: .normal)
         
         tableview.tableHeaderView = addPicBtn
-        
-        
-    }
-
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
-    }
-    
-    func back(){
-        dismiss(animated: true, completion: nil)
-    }
-
-
+
+    }
+    
+    // 重写父类方法
+    override func setupNavBar() {
+        
+        super.setupNavBar()
+        
+        navitem.title = "发布活动"
+        
+        let leftBtn = UIBarButtonItem(title: "取消", style: .plain, target: nil, action: #selector(dissmissController))
+        navitem.leftBarButtonItem = leftBtn
+        
+        let rightBtn = UIBarButtonItem(title: "发布", style: .plain, target: nil, action: #selector(commitActivityToServer))
+        navitem.rightBarButtonItem = rightBtn
+    }
+    
 }
 
 // MARK: - 代理相关方法


}



    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    


}

// MARK: - UI 相关方法
extension EUStartActivityViewController{
    
    // 父类方法设置为了 fileprivate ，子类无法继承
    fileprivate func setupUI(){
        
        tableview.contentInset = UIEdgeInsets(top: 64, left: 0, bottom: 0, right: 0)
        
