We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
switch (component) { case 0: {
self.provinceIndex = row; self.citieIndex = 0; self.areaIndex = 0; // 这个地方最好加上这句代码, 否则会出现数组越界,导致奔溃 [pickerView reloadComponent:1]; [pickerView selectRow:0 inComponent:1 animated:YES]; [pickerView reloadComponent:2]; [pickerView selectRow:0 inComponent:2 animated:YES]; break; }
}
The text was updated successfully, but these errors were encountered:
fix bug #1
8870905
No branches or pull requests
(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
switch (component) {
case 0: {
}
The text was updated successfully, but these errors were encountered: