             TimeFrom1.text = time[textfieldrowfrom1]
             TimeTo1.text = time[textfieldrowto1]
             TimeFrom1.resignFirstResponder()
+            TimeTo1.resignFirstResponder()
         case 2: //calcelボタン
             TimeFrom1.text = ""
             TimeTo1.text = ""
             TimeFrom1.resignFirstResponder()
+            TimeTo1.resignFirstResponder()
         default:
             break
             
         }
     }
     
+    //textfieldがタップされた時
     func textFieldDidBeginEditing(textField: UITextField) {
         TimeFrom1.text = time[textfieldrowfrom1]
         TimeTo1.text = time[textfieldrowto1]

        SalalyLabel2.keyboardType = .Default
        TimeFrom1.inputView = myUIPicker1
        TimeFrom1.inputAccessoryView = toolBar
        
        myUIPicker1.selectRow(9, inComponent: 0, animated: true)
        myUIPicker1.selectRow(22, inComponent: 2, animated: true)

        super.viewDidLoad()

        TimeFrom1.delegate = self
        TimeTo1.delegate = self
        
        //Toolbarの作成
        let toolBar = UIToolbar()
