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?
- (void)pickerView
{
// report the selection to the UI label
NSLog(@"%@",[NSString stringWithFormat
[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?