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

前端 未结 3 900
天涯浪人
天涯浪人 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:47

    I have implemented this , You can achieve this by adding the button on the first row of any section and load other rows by the click on the first row with UITableViewRowAnimationTop using beginUpdate.

    So now every first row of the section with index==0 will be a dropdown button and other rows starting from index=1 will be your data rows representing the information.

提交回复
热议问题