         return scrollView
     }()
     
-    
+    //MARK: - 视图加载
     override func viewDidLoad() {
         super.viewDidLoad()
-//        title = "半糖"
+        
         view.backgroundColor = UIColor.whiteColor()
         // 这个是必要的设置, 如果没有设置导致显示内容不正常, 请尝试设置这个属性
         automaticallyAdjustsScrollViewInsets = false
         setupNaviBar()
+        
+        
+        
         setChildVcs()
         
         addSubviews()


class BTHomeViewController: UIViewController, SDCycleScrollViewDelegate{
    
    var loadingView: BTLoadingView?
    var childVcs:[BTBaseTVC] = []
    var currentChildVc: BTBaseTVC!

        
        if offSetY < -(defaultOffSetY - headViewHeight + naviBarHeight) {
            

            navigationBarAlpha = currentOffsetY * 1 / 98.0
            
            
            if navigationBarAlpha <= 0 {
                
            }
            
            if navigationBarAlpha >= 1 {

                navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "home_sign_top_icon_19x19_"), highlightImage: nil, target: self, action: #selector(signClick))
            } else {
                navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "home_sign_icon_33x33_"), highlightImage: UIImage(named: "home_sign_highlight_icon_33x33_"), target: self, action: #selector(signClick))
            }

            navigationController?.navigationBar.zz_setBackgroundColor(UIColor.whiteColor().colorWithAlphaComponent(navigationBarAlpha))
            navigationController?.navigationBar.zz_setElementAlpha(navigationBarAlpha)
            
        }
        
        
        if offSetY > -(defaultOffSetY - headViewHeight + naviBarHeight) {
            if topView.frame.origin.y == naviBarHeight {
                navigationBarAlpha = 1.0
                navigationController?.navigationBar.zz_setBackgroundColor(UIColor.whiteColor().colorWithAlphaComponent(navigationBarAlpha))
                return
            }
            // 使滑块停在navigationBar下面
            self.scrollView.frame.origin.y = naviBarHeight - headViewHeight
            topView.frame.origin.y = naviBarHeight

            navigationBarAlpha = 1.0
        navigationController?.navigationBar.zz_setBackgroundColor(UIColor.whiteColor().colorWithAlphaComponent(navigationBarAlpha))
            
            return
        } else if offSetY < -defaultOffSetY {
