Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilx.mac

macrumors member
Original poster
Mar 10, 2009
63
0
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?
 

Attachments

  • Picture 1.png
    Picture 1.png
    308.3 KB · Views: 236
  • Picture 2.png
    Picture 2.png
    303.6 KB · Views: 206
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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.