0

I want to create a combo box for an iPhone application like we have on our website. I have searched a lot, but everybody says to use a picker. I want to use the same UI as a web combo box, so is there any way to do that in an iPhone app?

Halle
  • 3,584
  • 1
  • 37
  • 53
user1520252
  • 121
  • 1
  • 3
  • 12

3 Answers3

0

Just create a custom view with button and below that tableview. Set width of tableview similar to the width of button.

On button's event select or un-select tableview. And load the required data in tableview.

Using CALyer and other Core-graphics API, you can customize UI of table view as per your requirement.

Ankit Thakur
  • 4,739
  • 1
  • 19
  • 35
0

Here's an open-source implementation of what you're looking for. That site has a lot of useful, open source controls.

Ash Furrow
  • 12,391
  • 3
  • 57
  • 92
0

You can use a TableView and expand/collaps the Cells.

Here are some Examples...

Expand collapse UITableViewCell

and here...

http://www.cocoanetics.com/2011/03/expandingcollapsing-tableview-sections/

Community
  • 1
  • 1
xapslock
  • 1,119
  • 8
  • 21