         view.addSubview(tableView)
         tableView.tableHeaderView = imageView
         view.insertSubview(navBar, aboveSubview: tableView)
-        navBar.barStyle = .black
+        navigationController?.navigationBar.barStyle = .black
         navBar.wr_setBackgroundColor(color: .clear)
+        navItem.leftBarButtonItem = UIBarButtonItem(title: "star", style: .plain, target: self, action: nil)
+        navItem.title = "自定义导航栏"
     }
 }
 

    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
    {
        tableView.deselectRow(at: indexPath, animated: true)
        let vc:UIViewController = BaseViewController()
        vc.view.backgroundColor = UIColor.red
        let str = String(format: "WRNavigationBar %zd", indexPath.row)
        vc.title = str
        navigationController?.pushViewController(vc, animated: true)
    }
}

    {
        super.viewWillAppear(animated)
        tableView.delegate = self
        scrollViewDidScroll(tableView)
        navigationController?.navigationBar.barStyle = .black
    }
    
    override func viewWillDisappear(_ animated: Bool)
