开发者

help needed for combo box in iphone

Please help me to create drop down box using iphone. I tried in pickerview with textfield but not worked as my requirement can u suggest the url for to solve this problem. The data should come 开发者_运维问答from xml and as a select option in html.


The easiest way is to use a UITableView with the options, which upon selecting a cell, returns the value of that cell to whatever control that has the select.

For the select you can use a button with a custom image for example, and show a table using presentModelViewController.

When the TableView shows and a selection is made, you store the selected value and dismiss the tableView using dismissModalViewController.

I had the same problem where the Picker just did not fit my requirements and used the tableView solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜