I have successfully implemented UIPickerView. However, I have a problem when choosing values.
According to the standard way, I implemented a method
- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
}
The problem is that I am trying to select the very first value. By default, the first element is selected, so if I want the method to be called for the first line, I need to scroll down, select a value, then scroll to the first again. What am I missing here? Is there any other way to do this? Also, is it possible to get the selected value without moving the collector? Since I have a view containing components like UITextField and UIPickerView, and I need to scan the whole view to get the values of the components.
thanks Leonardo
source
share