I like to implement UI like this screen.
as you see, when I touch a specific cell, pickerview appears at the bottom of that cell. and it sits between two cell. and pickerview doesn't seem to be a subview of cell.
How do I implement this? I don't know where to start...
You can insert a new cell
which contains a UIPickerView
when user tap on a cell
by using this method -
- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
Also for this you need to handle your data structure
carefully by which you are populating your UITableView
.
You can checkout this repo, it might help you - https://github.com/saadnib/InsertPickerInTableView
来源:https://stackoverflow.com/questions/17646351/make-uipickerview-appear-between-cells-when-touched-cell