I have 1 UIPicker with 5 components, all numbers 1-9. I just want all 5 components to show up in the UITextfield. I have a feeling there is a much shorter code for this than what I have:
NSString *result = [metricMillimeterArray objectAtIndex:[metricMillimeterPicker selectedRowInComponent:0 & [metricMillimeterPicker selectedRowInComponent:1]& [metricMillimeterPicker selectedRowInComponent:2]& [metricMillimeterPicker selectedRowInComponent:3]& [metricMillimeterPicker selectedRowInComponent:4]]];
I can’t tell what your objects are that are returned, but if
commands return strings (that are one character long) then you will need to:
This is assuming that your component 4 is your least significant, but the powers of 10 can be swapped if that part I got wrong.