Generally, the infinite scrolling page consists of two parts:
- page header includes:
(1) search input
(2) search button
(3) picture of today
(4) project logo - search results
The pages of search results depends on the searching key words. Every page displays 10 search results. When the user scrolls down to the end of the page , call a function to load more data and display it.
- show basic content of one page
- when the user scrolls down to the end of the page , call a function to load more data
from server and append data to the displaying page - if there are newer posts, return them
- when all the data is shown, stop the process and tell the user all data has been viewed.
NSOperation
NSOperationQueue
design graph for infinite scrolling UI
backup link--(https://www.pinterest.com/pin/392165080034698085/)