title: pickerView in Swift does not display data
body: <p>This seems too simple to qualify as a post, but I've been stuck on this issue for longer than I'd like. The pickerView does not display the array [durations]. When run, the simulator is just the empty field. The code was copied directly from the UI class, yet it seems to be missing something. </p>
  
  <pre class="lang-swift prettyprint-override"><code>class FirstViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {
      @IBOutlet weak var durationPicker: UIPickerView!
      var durations = ["72 hours", "24 hours", "6 hours", "2 hours", "20 minutes"]
      var durationsValue = [72.0, 24.0, 6.0, 2.0, 0.329]
      var itemSelected: String = ""
      var selectedDuration: Double = 0.0
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
      }
  
      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 5
      }
  
      func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String! {
          return durations[row]
      }
  
      func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
          itemSelected = durations[row]
          selectedDuration = durationsValue[row]
      }
  }
  </code></pre>