What does indexpath mean for UICollectionView’s supplementaryView or decorationView?
layoutAttributesForSupplementaryViewOfKind:atIndexPath:
layoutAttributesForDecorationViewOfKind:atIndexPath:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This Documentation says :
Same for decoration views.
In other words there is absolutely no correlation between a cell indexPath which corresponds to a position in the data source, and the indexPath of the supplementary or decoration view which corresponds to whatever you want.