         return shiftlist.count
     }
     
-//    //表示内容
-//    func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
-//        return shiftlist[row] as? String
-//    }
-    
     //選択時
     func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
-        //        print("列: \(row)")
-        //        print("値: \(shiftlist[row])")
-       // SaralyLabel.text = String(DBmethod().ShiftDBSaralyGet(DBmethod().DBRecordCount(ShiftDB)-row))
+       
+        SaralyLabel.text = String(DBmethod().ShiftDBSaralyGet(DBmethod().DBRecordCount(ShiftDB)-1-row))
     }
     
     //月給表示画面が表示(アプリがアクティブ)されたら呼ばれる

            }
            
            //pickerviewのデフォルト表示
//            SaralyLabel.text = String(DBmethod().ShiftDBSaralyGet(DBmethod().DBRecordCount(ShiftDB)))
        }
    }
    

            self.view.addSubview(imageview)
        }
        
        NSTimer.scheduledTimerWithTimeInterval(1.0,target:self,selector:Selector("FileSaveSuccessfulAlertShow"),
            userInfo: nil, repeats: true);
        
