         }
     }
     
+    var isStateFirstInit = false
+    
     var state: SkillHomeState = .Master {
         willSet {
-            
             
             switch newValue {
             case .Master:

    

    func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
        if scrollView.contentOffset.x >= scrollView.contentSize.width / 2 {
            state = .Learning
        }else {
            state = .Master
        }
    }

                headerView.masterButton.setInActive()
                headerView.learningButton.setActive()
                skillHomeScrollView.setContentOffset(CGPoint(x: masterTableView.frame.size.width, y: 0), animated: true)
   
            }
            
        }
