title: Value of type String to type [String] in Swift
body: <p>maybe someone can help me. I made a copy of the project “add rows to TableView” from IOSCcreator. Now I change the file where an item can be added with a pickerview. At line 44 (<code>pickOption = carName.text</code>) it fails:</p>
  
  <blockquote>
    <p>Cannot assign a value of type String to a value of type [String].</p>
  </blockquote>
  
  <p>Try a lot of things but nothing works.</p>
  
  <pre><code>import UIKit
  
  class CarDetailViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {
  
    @IBOutlet weak var carName: UITextField!
    var pickOption = ["Opel", "Mercedes", "Hyundai", "Kia"]
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          var pickerView = UIPickerView()
          pickerView.delegate = self
          carName.inputView = pickerView
      }
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
      func numberOfComponentsInPickerView(pickerView: UIPickerView) -&gt; Int {
          return 1
      }
      func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
          return pickOption.count
      }
      func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String! {
          return pickOption[row]
      }
      func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
          carName.text = pickOption[row]
      }
      override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
          if segue.identifier == "doneSegue" {
             pickOption = carName.text
          }
      }
      override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
          self.view.endEditing(true)
      }
  }
  </code></pre>