         self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)//페이지 닫기
         
     }
+    let locationManager = CLLocationManager()
     
     override func viewDidLoad() {
         
         underView.bounds.size.height = settingFontSize(9)
         refresh.setFontSize(settingFontSize(0))
         
-        //네비게이션바 관련
+        refresh.hidden = true
+        
         for parent in self.navigationController!.navigationBar.subviews{
             for childView in parent.subviews{
                 if(childView is UIImageView){

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        
        
        
    }
    
        
}
        }
        //네비게이션바 색상변경
        let navBarColor = navigationController!.navigationBar
//        navBarColor.translucent = false
//        navBarColor.barStyle = .Black
        navBarColor.barTintColor = UIColor(red:  230/255.0, green: 70/255.0, blue: 70/255.0, alpha: 0.0)
        navBarColor.tintColor = UIColor.whiteColor()
        navBarColor.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
        
        self.lat = ""
        self.lng = ""
        
        self.locationManager.delegate = self
        self.locationManager.desiredAccuracy = kCLLocationAccuracyBest
        self.locationManager.requestWhenInUseAuthorization()
        self.locationManager.startUpdatingLocation()
        
        self.spinner.startAnimating()
        
    }
    
    override func viewWillAppear(animated: Bool) {
        
            
        if(self.mainRow.count != 0){
            self.tableView.reloadData()
        }
            
        
        
    }
    
    override func viewDidAppear(animated: Bool) {
        
            
        if(self.lng != "" && self.lat != ""){
            
            self.mainRow = returnLocationRow()
            
            if(self.mainRow.count != 0){
                self.tableView.reloadData()
                //self.refresh.hidden = false
            }
            
        }else{
            
            let alert = UIAlertController(title: "오류", message: "현재 위치 정보를 가져오지 못하였습니다.", preferredStyle: .Alert)
            let cancelAction = UIAlertAction(title: "확인", style: .Cancel){(_) in
                
                self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)//페이지 닫기
                
                
            }
            alert.addAction(cancelAction)
            self.presentViewController(alert, animated: true, completion: nil)
            
        }
            
            
        
        self.spinner.stopAnimating()
        
    }
    
