title: Swift - how to concatenate didSelectRow selections from UIPickerView
body: <p>I have a two column picker (Miles and Tenths)</p>
  
  <p>Picker seems to work well, but I cannot seem to work out how to concatenate the selections from the two columns i.e. if user selects 23 from first column and 6 from second column, I want to create an answer of "23.6" </p>
  
  <p>At the moment, either column selection overwrites the previous selection.</p>
  
  <p>BTW:  I don't think I can append two strings because what happens if user selects the 10ths first?  </p>
  
  <pre><code>    let resetPickerData = [Array(0...99), Array(0...9)]
  
  // returns the number of 'columns' to display.
  func numberOfComponentsInPickerView(pickerView: UIPickerView!) -&gt; Int{
      return 2
  }
  
  // returns the # of rows in each component..
  func pickerView(pickerView: UIPickerView!, numberOfRowsInComponent component: Int) -&gt; Int{
      return resetPickerData[component].count
  }
  
  func pickerView(pickerView: UIPickerView!, titleForRow row: Int, forComponent component: Int) -&gt; String! {
      return String(resetPickerData[component][row])
  }
  
  func pickerView(pickerView: UIPickerView!, didSelectRow row: Int, inComponent component: Int)
  {
      //var distance = ??
  }
  </code></pre>