title: How to Scroll to Specific Row in UIPickerView In iOS Swift 3
body: <p>I have a <code>UIPickerView</code> with values 0...250. There is 2 Components in <code>UIPickerView</code>. In First component i am displaying these values. but i want to detect scrolling method of the <code>UIPickerView</code>. because when pickerView appears the value I would like to display is 75. means pickerView is scroll to row number 75. and user can scroll up and down the picker with values 0...250.
  I have tried this code in <code>UIPickerView</code> <code>titleForRow row: Int</code> method</p>
  
  <pre><code>pickerView.selectRow(75, inComponent: 0, animated: true)
  </code></pre>
  
  <p>in this case when pickerView appears the selected value is 75. Below is exactly what i want</p>
  
  <p><a href="https://i.stack.imgur.com/QyRty.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QyRty.png" alt="enter image description here"></a></p>
  
  <p>but the problem is that on scrolling <code>pickerView</code> my app crash with following error </p>
  
  <p><code>[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'</code></p>
  
  <p>anyone help me please thanks in advance :-)</p>