     override func viewDidLoad() {
         super.viewDidLoad()
 
-        titleButtonView.setTitleColor(UIColor.white, for: .normal)
-        titleButtonView.frame.size = CGSize(width: UIScreen.main.bounds.width - 100, height: 20)
-        titleButtonView.addTarget(nil, action: #selector(didClickTitleBtn), for: .touchUpInside)
-        titleButtonView.setTitle("加载中", for: .normal)
-        titleButtonView.setImage(UIImage(named: "community_down"), for: .normal)
-        titleButtonView.setImage(UIImage(named: "community_up"), for: .selected)
-        titleButtonView.isEnabled = false
-        navitem.titleView = titleButtonView
-        spinnerview.delegate = self
+        initSpinner()
     }
 
     


}



// MARK: - 监听方法

    }
    
    func swiftySpinnerDidSelectRowAt(cell: SpinnerCell, row: Int) {
        titleButtonView.setTitle(communityauthorutylist.communityauthoritylist[row].cmname ?? "", for: .normal)
    }
    
}
