Set UIPickerView controller values to a table view cell.

Discussion in 'iPhone/iPad Programming' started by ilx.mac, May 4, 2009.

  1. macrumors member

    Joined:
    Mar 10, 2009
    #1
    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. thread starter macrumors member

    Joined:
    Mar 10, 2009
    #2
    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