ios - Accessing Visible UICollectionReusableViews When Scrolling -


I'm trying to get a modify UICollectionView a UICollectionViewFlowLayout supports a vertical impact on the scroll using I'm able to do some of the UICollectionViewCells like:

  - (void ) ScrollViewDidScroll: (UIScrollView *) mainScrollView {CGPoint offset = [mainScrollView contentOffset]; In the (UIView * Cell [self.mainCollectionView visibleCells]) if ([cell conformsToProtocol: @protocol (KSParallaxCell)]) [(parallaxInScrollView (UIView & LT; GSParallaxCell & gt; *) cell): mainScrollView Tox: offset.x Toy: Offset. Y]; A}   

It is possible to iterate over the supplementary ideas ( UICollectionElementKindSectionHeader and UICollectionElementKindSectionFooter ) that they checked the same parallax representatives support for?

Instead of forgetting to clear check call looping cells appear through the subviews:

  - (zero) scrollViewDidScroll: (UIScrollView *) mainScrollView {CGPoint offset = [mainScrollView contentOffset]; For (UIView * cell self.mainCollectionView.subviews) if ([cell conformsToProtocol: @protocol (KSParallaxCell)]) [((UIView & LT; GSParallaxCell & gt; *) cell) parallaxInScrollView: mainScrollView Tox: offset.x toy : Offset.y]; }    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -