title: UiPickerView not work until its rows are scrolled ios
body: <p>I have a UIPickerView . It is working fine . But it doesn't select any row until rows are scrolled . </p>
  
  <p><strong>Here is my code.</strong></p>
  
  <pre><code> selectProArray = [[NSMutableArray alloc]initWithObjects:@"ABC",
                                                           @"DEF",
                                                           @"IJK",
                                                           nil];
  
   selectPROPicker = [[UIPickerView alloc]init];
   selectPROPicker.backgroundColor = [UIColor colorWithRed:209.0/255.0 
                                                      green:213.0/255.0 
                                                      blue:219.0/255.0 
                                                      alpha:1];
  
   -(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
      {
           selectedPickerRow=[selectProArray objectAtIndex:row];
           NSLog(@"SelectedRow=%@",selectedPickerRow);
           rowID = row;
           [selectField resignFirstResponder];
      }
  </code></pre>