I am trying to do the following in my application:
I got my data from an online server, and I put them in cells, What I need is to auto loading the data when scrolling down, means for example 10 cells are loaded when the application is running, then when I scroll down 10 other cells are dynamically loaded.
Like the following example:
Thank You per advance,
You can implement this method inside your view controller and get your next record
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
if (([scrollView contentOffset].y + scrollView.frame.size.height) >= [scrollView contentSize].height){
// Get new record from here
}
}
This is the simplest way to implement paging. if you want to add Activity indicator at the bottom, you can add it inside the same function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With