How do I query limit 5 and once user scroll down , it will load another 5
Here's the code
override func queryForTable() -> PFQuery {
var query = PFQuery(className: "product")
query.orderByDescending("createdAt")
return query
}
Do I need to set a limit?
Definitely, there is that PFQuery limitation method