daihovey
daihovey

Reputation: 3575

Scrolled to the bottom of a TableView

Is it possible to find out when the user has scrolled to the bottom of a UITableView?

Upvotes: 0

Views: 185

Answers (1)

Walter
Walter

Reputation: 5887

The UITableview delegate has a method called

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

If the method is called and the indexPath variable is equal to the indexPath of the last row in your dataset then the view is about to display the last row of the table.

Upvotes: 4

Related Questions