UIPickerView to reload data in UITableView

Discussion in 'iOS Programming' started by CGagnon, Aug 1, 2010.

  1. macrumors regular


    Jun 24, 2007
    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!

Share This Page