title: Set UITextField's text as default value in UIPickerView in iPhone.?
body: <p>I have some text in textField on view load.I want that particular text to be set as default value of UIPickerView ..The value in textField is one of the value of UIPickerView..How can I make it possible.For the code I m writing now is always first value is selected as default value in UIPickerView.But I want the text of  textField to be set as default value in PickerView.</p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component 
  { 
  
      txtstate.text= [[arr objectAtIndex:row] valueForKey:@"Code"]; 
  } 
  </code></pre>
  
  <p>How can I do it ?</p>