I need something with this
NSMutableArray *foodArray;
NSMutableArray *ingredientsArray;
[foodArray addObject:Pizza];
and when select Pizza in a PickerView show me in the second row ingredientsArray for the pizza
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, you’ll need to make sure that you’ve implemented
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)componentonce that is done you’ll need to update the data that is driving your UIPickerView whenever a new row is selected in the first component, then call
reloadComponent:on the picker view, passing in the component (in this case 1).