UIPicker selectRow
UIPicker selectRow
- Subject: UIPicker selectRow
- From: IPhone Lover <email@hidden>
- Date: Thu, 19 Aug 2010 11:18:59 +0530
Hi Folks,
sorry, but i am not sure whether my mail reached to xcode-users so i am writing again
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,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden