I would like to know how to achieve using a UICollectionView
the desired effect of loading in demand like in the Amazon app when you make a search, it returns only a number of items until the scroll ends, then a loading indicator it set to load more cells and go on until all the products in the search it's showed.
Something like the following picture for example :
Normally you have to set in the numberOfItemsInSection
, the number of items of the data source, how it's the way?, you set the total of items and then load it lazy or something?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…