title: UIPickerView start with selected row in middle
body: <p>When the user selects a state from a  <code>UIPickerView</code>, it takes them to a different <code>viewController</code> with data for the selected state.  When they hit the  'back' button and go to the <code>viewController</code> for the <code>pickerView</code> it always starts at the top with the first state, in this case Arizona.  How can I make it already scrolled to the middle and have Tennessee selected for example, if that was the state they originally selected? I'm using Xcode 7 and Swift 2, Thank you!</p>
  
  <p>I have a <code>UIPickerView</code> that gets it data from:</p>
  
  <pre><code>let pickerData = ["Arizona", "Arkansas", "California","Tennessee", "Texas", "Utah", "Virginia"]
  </code></pre>
  
  <p>When the user selects a state in the <code>pickerView</code> it takes that value and adds it to a variable:</p>
  
  <pre><code>func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
      //Takes the selected state and adds it to the variable 'currentState'
      currentState = pickerData[row]
      savedStateGV = currentState
  }
  </code></pre>
  
  <p>'savedStateGV' is a Global variable and 'currentState' is a local variable.  Both are <code>String</code> types.</p>
  
  <pre><code>func numberOfComponentsInPickerView(pickerView: UIPickerView) -&gt; Int {
      return 1
  }
  
  func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -&gt; Int {
      return pickerData.count
  }
  
  func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -&gt; String? {
      return pickerData[row]
  }
  </code></pre>