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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -