             shifttimeUIPicker.selectRow(shiftstarttimeselectrow, inComponent: 0, animated: true)
             shifttimeUIPicker.selectRow(shiftendtimeselectrow, inComponent: 2, animated: true)
             textField.text = time[shiftstarttimeselectrow] + " " + wavyline[0] + " " + time[shiftendtimeselectrow]
+        }else if textField.tag == 4 {       //マネージャー専用選択
+            shiftmanagerUIPicker.selectRow(shiftmanagerselectrow, inComponent: 0, animated: true)
+            textField.text = shitmanagerarray[shiftmanagerselectrow]
         }
     }
 

            pickerdoneButton.tag = 3
            
            shifttimetextfield.text = starttime + " " + wavyline[0] + " " + endtime
        }
    }
    

    func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
        if pickerView.tag == 2 {
            return shiftgroupname[row]
        }else if pickerView.tag == 3 {
            if component == 0 || component == 2 {
                return time[row]
            }else{
                return wavyline[row]
            }
        }else{
            return self.shitmanagerarray[row]
        }
    }
    
