Select row After UIPickerView is loaded

Call it after you retrieve the data. I don’t know where you load the data so this is just a mockup of what should work. If this doesn’t make sense, let me know where you are loading data so I can piece it together in my head 🙂

-(void)viewDidLoad
{
    // load data from sql
    // self.someDataArray = DATAFROMSQL
    [picker reloadAllComponents];
    [picker selectRow:0 inComponent:0 animated:YES];
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)