How to dynamically add rows to a specific UITableView section?

后端 未结 5 1650
Happy的楠姐
Happy的楠姐 2020-12-06 13:23

I am a new IOS Programmer, and i am having a issue.

I have a UITableView with 2 sections, one then is static, and another one is dynamical.

In specific actio

5条回答
  •  半阙折子戏
    2020-12-06 13:55

    you can do this by using scrolltoinfinite method but before that u have to import 3rd party svpulltorefresh

     [self.tableViewMixedFeed addInfiniteScrollingWithActionHandler:^{
    
            CGFloat height = self.tableViewMixedFeed.frame.size.height;
    
            CGFloat contentYoffset = self.tableViewMixedFeed.contentOffset.y;
    
            CGFloat distanceFromBottom = self.tableViewMixedFeed.contentSize.height - contentYoffset;
    if(distanceFromBottom

    here indexpaths1 is the array of indexpaths of next cells which u want to insert in a table . try using loop to get the next set of arrays and store them into indexpaths1.

提交回复
热议问题