I would like to load more data and create additional cells when the user scrolls to the bottom of the table. I\'m using JSON data and MySql.
func dataJsonFro
Xcode 8, Swift 3
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { let lastElement = dataSource.count - 1 if !loadingData && indexPath.row == lastElement { indicator.startAnimating() loadingData = true loadMoreData() } }