             returnDatePicker.addTarget(self, action: #selector(AddViewController.updateDateField(_:)), forControlEvents: .ValueChanged)
         }
         
-        // 等新增完其他cell再做判斷
         if let cell = textField.superview?.superview as? TransportationTableViewCell {
          
             cell.typeTextField.inputView = transportationTypePickerView

    
        // Transportation Type Picker
        transportationTypePickerView.delegate = self
    
    }
    

        return 1
    }
    
    func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
        
        if pickerView.tag == 0 {
            
            let indexPath = NSIndexPath(forRow: 0, inSection: 0)
            let cell = tableView.cellForRowAtIndexPath(indexPath) as! AddTableViewCell
            cell.countryTextField.text = countryArray[row]
            
        } else if pickerView.tag == 1 {
            
            for index in 0..<rows.count {
                
                if let cell = allArray[index] as? TransportationTableViewCell {
                    
                    cell.typeTextField.text = transportationTypeArray[row]
                }
            }
        }
    }
    
    func pickerView(pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusingView view: UIView?) -> UIView {
        
        let pickerLabel = UILabel()
        pickerLabel.textColor = UIColor.whiteColor()
        pickerLabel.font = UIFont(name: "CourierNewPS-BoldMT", size: 20)
        pickerLabel.textAlignment = NSTextAlignment.Center
        
        if pickerView.tag == 0 {
        
            pickerLabel.text = countryArray[row]
            
        } else if pickerView.tag == 1 {
            
            pickerLabel.text = transportationTypeArray[row]

        }
        
        return pickerLabel
    
    }
    
    
    
    // MARK: TextField Delegate
