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

class CustomNavBarController: BaseViewController
{    
    lazy var tableView:UITableView = {
        let table:UITableView = UITableView(frame: CGRect.init(x: 0, y: 0, width: kScreenWidth, height: self.view.bounds.height), style: .plain)
        table.contentInset = UIEdgeInsetsMake(-64, 0, 0, 0);
        table.delegate = self
        table.dataSource = self
        return table
    }()
    lazy var imageView:UIImageView = {
        let imgView = UIImageView(image: UIImage(named: "image1"))
        imgView.frame = CGRect.init(x: 0, y: 0, width: kScreenWidth, height: IMAGE_HEIGHT)
        return imgView
    }()
    

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

