How do I set a UIPickerView row when loading a View? I've tried but it's just not working. The row is always set to 0 when the View appears. By the way, I call "self" because I set the View to be the <UIPickerViewDelegate>.
Here's what my code is currently:
Please help!
Thanks.
Ethan
Here's what my code is currently:
Code:
- (void)viewWillAppear:(BOOL)animated {
[self selectRow:2 inComponent:0 animated:YES];
}
- (void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated {
[self reloadAllComponents];
}
- (void)reloadAllComponents {
}
Please help!
Thanks.
Ethan