Very simple iPhone question. How to make UIPickerView with two columns? -
I have read other questions about creating a UIPickerView with two or more columns, but the exact solution can not be found.
How is this done for the iPhone program? How do you add static data? Thanks!
Support the UIPickerViewDelegate Protocol (or whatever is controlling the behavior of PickerView). After this, execute:
- (int) numberOfColumnsInPickerView: (UIPickerView *) picker
The columns you want, and
< Pre> - (int) pickerView: (UIPickerView *) picker numberoffrose encocol: the number of rows for each column, and finally:
to call (UIPickerTableCell *) pickerView: (UIPickerView *) Picker table: CellForre: column in the (int) line: To set up each cell (int) Col
.
See references for more.
Comments
Post a Comment