Reputation: 438
I want to implement a drop-down list in an iPhone application, the same like you might have seen in iBooks when you select PDFs/Books.
I have a slight idea how to implement it, just correct me if I am wrong:
CGRect
and within the CGRect
draw a LoadTableView
TableViewData
at runtime.Is that correct? If not, how should I do it?
Upvotes: 2
Views: 7339
Reputation: 5611
Are you looking for a UIPickerView
?
This component gives you the possibility of selecting from a custom number of elements through a dedicate table view. Use it in conjunction with a UIActionSheet
to get the best results.
Upvotes: 0
Reputation: 49364
Here's a much better/easier way to do it.
This is what iBooks does with a highly customized UITableViewController.
Upvotes: 2