Hi Folks, I am trying to select the first row as default.. Here i tried
-(void)pickerViewLoaded{
[pickerView setShowSelectionIndicator:YES];
pickerView.delegate = self;
[pickerView reloadAllComponents];
[pickerView selectRow:1 inComponent:0 animated:YES]
}
It works fine when i call this method on viewDidLoad() which call didSelectRow method but it is selecting the second row of that component not first one. when i call with [pickerView selectRow:0 inComponent:0 animated:YES] then it never call didSelectRow method.
another problem is when i call pickerViewLoaded method on selection of segmented control it does not call the didSelectRow method. i still could not figure when it may call with viewDidLoad then why not with segmentedControl.
Thanks all,