How to show the TableView (like dropdown) on Button Click in iPhone?

前端 未结 3 892
天涯浪人
天涯浪人 2020-12-15 02:26

I have tried this code. http://www.mediafire.com/download/bvoqrkn82sd6az9/tablesample.zip ..Here, It will display the Table View. But I need to create a tableview whenever

3条回答
  •  伪装坚强ぢ
    2020-12-15 02:30

    There is no option for dropdwon in IOS SDK. If you need this follow like this.

    1. On the click of this button you'll have to load a UIView or UITableView which will come exactly down to your UIButton.
    2. This custom UIView or UITableView will act as your drop down.
    3. Once your use is complete you can either hide it or remove it.

    I hope it will hepl you.. Instead of dropview you can use UIPopoverController to show the UITableView

提交回复
热议问题