PDA

View Full Version : Set UIPickerView controller values to a table view cell.




ilx.mac
May 4, 2009, 06:21 AM
Hi there,

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
// report the selection to the UI label
NSLog(@"%@",[NSString stringWithFormat:@"%@ - %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?



ilx.mac
May 7, 2009, 02:24 AM
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!