How to make dynamically adding of rows when user reached to the last row of the UITableView?

后端 未结 4 740
夕颜
夕颜 2021-02-02 04:19

I have a UITableview which shows 10 rows currently which is fixed static. Now I want to add a feature into it. I want to add a more 10 rows to the table when user r

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 04:51

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return [categoriesList count];
    }
    

    Here categoriesList is an array. We can add objects to this array and call reloadData in the tableview.

提交回复
热议问题