     }
     
     func handleVideoData() {
+        endHeaderRefreshing()
+        dataController = DHVideoDataController()
+        dataController?.requestVideoAllWithCallback(callback: {
+            self.renderTableViewCell()
+        }())
+    }
+    
+    func endHeaderRefreshing() {
         DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
             self.tableView?.mj_header.endRefreshing()
         }
-        dataController = DHVideoDataController()
-        dataController?.requestVideoAllWithCallback(callback: {
-            self.renderTableViewCell()
-            self.tableView?.mj_footer = MJRefreshAutoNormalFooter(refreshingBlock: {
-                DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
-                    self.tableView?.mj_footer.endRefreshing()
-                }
-                self.dataController?.requestMoreVideo(callback: {
-                    self.tableView?.mj_footer.endRefreshing()
-                    DispatchQueue.main.async(execute: {
-                        self.tableView?.reloadData()
-                    })
-                }())
-            })
-            self.tableView?.mj_header.endRefreshing()
-        }())
     }
     
     func renderTableViewCell() {

            self.loadingView?.isHidden = true
            self.tableView?.reloadData()
        })
    }
    
    func segmentedMenu(didSelectIndex index: NSInteger) {

        tableView = UITableView(frame: CGRect(x: 0, y: 60 + (menu?.bounds.size.height)!, width: view.bounds.size.width, height: view.bounds.size.height - 60 - (menu?.bounds.size.height)!), style: .plain)
        tableView?.register(UINib(nibName: "DHVideoTableViewCell", bundle: nil), forCellReuseIdentifier: kVideoCellReuseIdentifier)
        tableView?.mj_header = MJRefreshNormalHeader(refreshingBlock: {
            let currentIndex = self.menu?.currentSelectedIndex()
            if let videoType = VideoType(rawValue: currentIndex!) {
                switch videoType {
                    case .ALL:
                        self.dataController?.requestVideoAllWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .JIESHUO:
                        self.dataController?.requestVideoJieshuoWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .BISAI:
                        self.dataController?.requestVideoBisaiWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .CELEBRITY:
                        self.dataController?.requestVideoCelebrityWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .QUWEI:
                        self.dataController?.requestVideoQuweiWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .BEGINNER:
                        self.dataController?.requestVideoBeginnerWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                    case .ADVANCED:
                        self.dataController?.requestVideoAdvancedWithCallback(callback: {
                            self.endHeaderRefreshing()
                            self.renderTableViewCell()
                        }())
                    break
                }
            }
        })
        view.addSubview(tableView!)
        tableView?.delegate = self
