2

I have collection view which contains a scroll view. Scroll view has custom class which has scrollViewDidScroll function. Whenever I scroll, the scrollViewDidScroll method doesn't trigger.

I tried attaching it's delegate to it's own class, and all the other classes and view controller itself. I attached each scroll view using cellForItemAt function because each controller has it's own cell.

1 Answer 1

1

Create custom class of UICollectionView and then make an outlet of scrollview in that class and connect its delegate to it in awakeFromNib: method.

Sign up to request clarification or add additional context in comments.

1 Comment

wc. happy coding !!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.