     
     
     override func viewDidLoad() {
+//        var tabFrame : CGRect = (self.tabBarController?.tabBar.frame)!
+//        tabFrame.size.height = settingFontSize(6)//+10
+//        tabFrame.origin.y = self.view.frame.size.height - tabFrame.size.height + 1
+//        self.tabBarController!.tabBar.frame = tabFrame
         
         addAlertBtn.setFontSize(settingFontSize(1))
         addListBtn.setFontSize(settingFontSize(1))
         
-        //여기부터 네비게이션바 관련
+        
         //self.tabBarController?.tabBar.hidden = true
         for parent in self.navigationController!.navigationBar.subviews{
             for childView in parent.subviews{

        navBarColor.barTintColor = UIColor(red:  230/255.0, green: 70.0/255.0, blue: 70.0/255.0, alpha: 0.0)
        navBarColor.tintColor = UIColor.whiteColor()
        navBarColor.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
        //여기까지 네비게이션바 관련
        
        
        

        self.tableView.reloadData()
    }
    
    override func viewWillAppear(animated: Bool) {
//        self.tabBarController?.tabBar.hidden = false
    }
    
    @IBOutlet var closeBtnTitle: UIBarButtonItem!
    @IBAction func closeBtn(sender: AnyObject) {
        
        if(closeBtnTitle.title == "닫기"){
            self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
        }else{
            fvo.config.removeObjectForKey("favoriteArray")
    
            let list : Array<String> = []
            self.fvo.config.setObject(list, forKey: "favoriteArray")
    
            self.tableView.reloadData()
        }
        
    }
    
    @IBOutlet var editBtnTitle: UIBarButtonItem!
    @IBAction func editBtn(sender: AnyObject) {
        
        //self.editing = !self.editing
        
        if(self.editing.boolValue == true && editBtnTitle.title == "편집"){
            self.editing = !self.editing
            editBtnTitle.title = "완료"
            closeBtnTitle.title = "전체삭제"
            self.editing = !self.editing
        }else if(self.editing.boolValue == true && editBtnTitle.title == "완료"){
            self.editing = !self.editing
            editBtnTitle.title = "편집"
            closeBtnTitle.title = "닫기"
        }else if(self.editing.boolValue == false && editBtnTitle.title == "편집"){
            self.editing = !self.editing
            editBtnTitle.title = "완료"
            closeBtnTitle.title = "전체삭제"
        }
        
    }
    
