Skip to content

Instantly share code, notes, and snippets.

@sourleangchhean168
Created January 20, 2020 09:52
Show Gist options
  • Save sourleangchhean168/b350a75733eb62f77308027a97373262 to your computer and use it in GitHub Desktop.
Save sourleangchhean168/b350a75733eb62f77308027a97373262 to your computer and use it in GitHub Desktop.
PaginationListTableview
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.row + 1 == list.count {
if currentPage != totalPage{
self.getList(currentPage + 1, max_row)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment