Set UIPickerView controller values to a table view cell.

Discussion in 'iOS Programming' started by ilx.mac, May 4, 2009.

  1. ilx.mac macrumors member

    Mar 10, 2009
    Hi there,

    - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
    // report the selection to the UI label
    NSLog(@"%@",[NSString stringWithFormat:mad:"%@ - %d",
    [pickerViewArray objectAtIndex:[pickerView selectedRowInComponent:0]], [pickerView selectedRowInComponent:1]]);

    using this method, I can write the selected value to console. But I have to write the selected value to a tableviewcell.

    Also, the tableviewcell is located in another .xib file.

    All I have to do is to refer the tableviewcell of previous .xib file (refer Picture1), on selecting State on Picture1, I will move to Picture2. And load it with the selected value from the uipickerview (refer Picture2).

    Any code/ suggestions on that?

    Attached Files:

  2. ilx.mac thread starter macrumors member

    Mar 10, 2009
    I am struck. I cant go beyond that. Can some one post me some inputs / Suggestions to display a uipickerview value to a uitableviewcell? Please!

Share This Page