views:

329

answers:

3

Hi. i am very new to iphone development. I want to make a dropdown list from scratch. Can anyone plz tell me how to do so. thanx in advance

A: 

You can use a UIPickerView or a UITableView to have a functionality akin to drop down lists.

Hetal Vora
+1  A: 

You would start with a UITextField and a button to look like a normal closed drop down list. Then when the button is clicked I would add a new view containing a small UITableView for the drop down part. It shouldn't be too hard. However I'd reconsider the need for a drop down box. Its just not something that you have room on screen for, and the UIPickerView is better suited IMHO. Now on the iPad they use a drop down similar to what I described above but it has enough room on the screen to make this practical.

jamone
hey thnx for the answer. it worked
Jayshree
A: 

you can't resize the pickerview, the idiots (Apple) locked it to 162 height. just a god damned morons.

Alex