Add a row dynamically in TableView of iphone

后端 未结 4 599
花落未央
花落未央 2021-01-05 14:26

I need to add a new row in the tableview when i select a row in the table.

Am i suppose to use the following method???

- (void)insertRowsAtIndexPaths         


        
4条回答
  •  粉色の甜心
    2021-01-05 14:45

    If you are filling your table from an array, you can just add an element to your array and call [myTable reloadData]

提交回复
热议问题