caipivara
12/29/2014 - 8:47 PM

Infinite scroll for UITableView for iOS http://stackoverflow.com/a/10404477/273119

Infinite scroll for UITableView for iOS http://stackoverflow.com/a/10404477/273119

func scrollViewDidScroll(scrollView: UIScrollView) {
		
	let actualPosition = scrollView.contentOffset.y
	let contentHeight = scrollView.contentSize.height - tableView.frame.size.height
	
	if actualPosition >= contentHeight {
		
		tableView.reloadData()
	}
		
}