locked
How to fetch the 10 ids from the response RRS feed

  • Question

  • User306227 posted

    I have list of ids .. But I need to fetch 10 ids from the list. And if I scroll the table view again 10 ids need to be fetched from the list

    Wednesday, July 1, 2020 2:45 PM

All replies

  • User369978 posted

    You could override the method WillDisplay which contains inside TableViewSource of TableView .

    It triggers when the cell is going to display on screen , you could fetch the data when it scrolls to last item .

    For instance :

     public override void WillDisplay (UITableView tableView, UITableViewCell cell, NSIndexPath     indexPath)
        {
    
            if (indexPath.Row == tableItems.Count - 1) {
                //fetch ids here .
            }
        }
    

    Refer to https://stackoverflow.com/a/22354684/8187800 .

    Thursday, July 2, 2020 6:17 AM