 //                .verticalOffset(50)
 //                .buttonImage(nil, for: .disabled)
 //        }
+        
         if #available(iOS 11.0, *) {
             tableView.contentInsetAdjustmentBehavior = .never
         }

        // Dispose of any resources that can be recreated.
    }
    
    func backgroundColor(forEmptyDataSet scrollView: UIScrollView) -> UIColor? {
        return UIColor.init(white: 0.95, alpha: 1)
    }
    
//    func customView(forEmptyDataSet scrollView: UIScrollView) -> UIView? {
//        let view = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
//        view.backgroundColor = .red
//
//        let button = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 30))
//        button.setTitle("button", for: .normal)
//        button.backgroundColor = UIColor.black
//        view.addSubview(button)
//        button.addTarget(self, action: #selector(buttonClicked), for: .touchUpInside)
//
//        return view
//    }
    func buttonTitle(forEmptyDataSet scrollView: UIScrollView, for state: UIControl.State) -> NSAttributedString? {
        return NSAttributedString(string: "lalala")
    }

    func title(forEmptyDataSet scrollView: UIScrollView) -> NSAttributedString? {
        return NSAttributedString(string: "hahaha")
    }
 
    func verticalOffset(forEmptyDataSet scrollView: UIScrollView) -> CGFloat {
        return 100
    }
    
    func emptyDataSet(_ scrollView: UIScrollView, didTapView view: UIView) {
        print("hello")
    }
    
    func emptyDataSetShouldAllowTouch(_ scrollView: UIScrollView) -> Bool {
        return true
    }
    
    @objc func buttonClicked() {
        
    }
    
    @objc func reload() {

        self.navigationItem.rightBarButtonItem = navBarButtom
        
        let topHeight = UIApplication.shared.statusBarFrame.height + 44
        tableView = UITableView(frame: CGRect(x: 0, y: topHeight, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height - topHeight))
        tableView.delegate = self
        tableView.dataSource = self
        tableView.tableFooterView = UIView()
        self.view.addSubview(tableView)

        tableView.emptyDataSetSource = self
        tableView.emptyDataSetDelegate = self
