View Full Version : UIPickerView to reload data in UITableView

Aug 1, 2010, 09:58 PM
What I have is a UITableView on top of a UIPickerView. What I want is to be able to select a row in myPickerView which will reload myTableView with the respective data.

For example, if myPickerView has the objects "colors, sizes" when I select "colors" I want the myTableView to display "red, blue, yellow" and if I select "sizes" it changes to "extra small, small, medium, large, extra large"

I tried to put that as simply as possible if you need more info just let me know. I assume I need to put something into the

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

I figured it out. Thanks for all the help though!