Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TapGesture on header can fail when using registerNib:forHeaderFooterViewReuseIdentifier #6

Open
FredrikGoransson opened this issue Oct 16, 2014 · 0 comments · May be fixed by #7
Open

Comments

@FredrikGoransson
Copy link

When using registerNib:forHeaderFooterViewReuseIdentifier to reuse header views the tableview can actually reuse previously created header views. This means that the reused view already has an UITapGestureRecognizer set and the tag for the view is not updated to the new section the view is dequeued for. In handleTapGesture: the tag for the header view is then used to determine which section to open/close.

@FredrikGoransson FredrikGoransson linked a pull request Oct 16, 2014 that will close this issue
derpoliuk added a commit to derpoliuk/STCollapseTableView that referenced this issue Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant