开发者

iPhone: How to use a UITableView as a drop-down menu

开发者 https://www.devze.com 2023-01-07 19:13 出处:网络
How do I get UITableView to display as drop-down list? I want to enable selection from a list of items. Since picker view takes up a lot of space and I have already used once in the same app, I was

How do I get UITableView to display as drop-down list?

I want to enable selection from a list of items. Since picker view takes up a lot of space and I have already used once in the same app, I was just wondering if UITableView can be used for displaying 开发者_如何转开发a drop-down list as it will take scant space.

And also the list gets populated from a database which lends itself to editing by the user from the interface.

Thanks in advance.

Sayeed


As I understand, you're trying to do something with your UITableView as the last one in the following image: (simply making a selection of one item)

iPhone: How to use a UITableView as a drop-down menu

I suggest you to push your "drop down" UITableView into your UINavigationController. Apple has a reference guide ready also.

Hope you'll see where I'm trying to pointing you :-)

0

精彩评论

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