     
     @IBAction func userLogin() {
         UserLogin.showUserLoginView(presentNavigator: nil)
+        //隐藏菜单
+        self.sideMenuViewController.hideMenuViewController()
+    }
+    
+    @IBAction func showSearch() {
+        UIAlertView(title: "", message: "搜索", delegate: self, cancelButtonTitle: "确定").show()
         //隐藏菜单
         self.sideMenuViewController.hideMenuViewController()
     }

    var username: UILabel!
    var level: UIButton!
    var btnLogin: UIButton!

    override func viewDidLoad() {
        super.viewDidLoad()

        btnLogin.layer.cornerRadius = 8
        btnLogin.addTarget(self, action: "userLogin", forControlEvents: UIControlEvents.TouchUpInside)
        header.addSubview(btnLogin)
        
        btnSearch = UIButton(frame: CGRectMake(15, 55, self.view.bounds.size.width-15-120, 25))
        btnSearch.backgroundColor = UIColor.blackColor()
        btnSearch.layer.borderColor = UIColor.whiteColor().CGColor
        btnSearch.layer.borderWidth = 1
        btnSearch.alpha = 0.2
        btnSearch.setTitle("搜索", forState: .Normal)
        btnSearch.titleLabel?.font = UIFont(name: btnSearch.titleLabel!.font.fontName, size: 14)
        btnSearch.titleLabel!.textAlignment = NSTextAlignment.Left
        btnSearch.addTarget(self, action: "showSearch", forControlEvents: .TouchUpInside)
        header.addSubview(btnSearch)
        
        header.backgroundColor = UIColor.clearColor()
        tableView.tableHeaderView = header
