I need to display 3 rows from which a user can pick values by selecting any row: http://cl.ly/9SFy
For example, when I pick the first row, a list of values appear (kinda a picker view).
Also, it should be possible to drag and reorder the rows.
How do you suggest to implement this on iPhone ?
thanks
The easiest way to do this is to create a UITableView that displays all of the rows.
You can manage reordering of the cells easily (see the Managing the Reordering of Rows section of the Table View Programming Guide for iOS
).
Apple supplies a UIPickerView already; all you have to do is present a modal view containing the picker view whenever the user taps on a cell (using
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath).