iOS UICollectionView Detect if there are cells that aren't visible -


i have uicollectionview, horizontally scrolling , set being 1 row only. how able detect if there cells aren't visible on screen; outside bounds of collectionview's frame?

my idea show arrow next uicollectionview if there cells aren't visible.

you can check instance method of uicollectionview:

nsarray *indexpaths = [self.collectionview indexpathsforvisibleitems]; 

you compare first 1 first item in data source, , last 1 last item.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -