I am successfully able to integrate the iCarousel component but now facing an issue to implement "Pull to Refresh" & "Load More" features.
Actually iCarousel is a subclass of UIView whereas "Pull to Refresh" & "Load More" features normally works with subclass of UIScrollView. And UIView doesn't support these features. Therefore, I am stuck at this point.
I don't have any idea how to implement "Pull to Refresh" & "Load More" features with UIView(ICarousel)?
Solution
You can use
scrollOffsetproperty andcarouselDidScrollmethod to implement "Pull to Refresh" & "Load More" features.Have some points you need to know here.
scrollOffset < 0: User is trying to pull to refresh.scrollOffset > numberOfItems - 2: Last item is going to displayedImplement this logic on
carouselDidScrollmethod to archive features.Result
For more detail, you can take a look at my sample
https://github.com/trungducc/stackoverflow/tree/icarousel-pull-to-refresh-load-more