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

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -