UIPickerView to reload data in UITableView

Discussion in 'iPhone/iPad Programming' started by CGagnon, Aug 1, 2010.

  1. macrumors regular

    CGagnon

    Joined:
    Jun 24, 2007
    #1
    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

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


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

Share This Page