我在Android上使用菜单的自定义布局完成了这项工作。如何创建多行下拉选择器,其中每个订单项都有其他字符串作为页脚?
像这样:
答案 0 :(得分:2)
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
您需要实现此委托方法,并在其中返回自定义视图。
Apple docs
答案 1 :(得分:1)
您可以使用pickerView:viewForRow:forComponent:reusingView:
委托方法实现此目的。