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

Swipe cell with accessory doesn't call accessoryButtonTapped #16

Closed
Jonge opened this issue Mar 13, 2017 · 3 comments
Closed

Swipe cell with accessory doesn't call accessoryButtonTapped #16

Jonge opened this issue Mar 13, 2017 · 3 comments
Labels
Milestone

Comments

@Jonge
Copy link

Jonge commented Mar 13, 2017

Hey,

I have a custom cell (subclass of SwipeTableViewCell). When I add an accessory view using cell.accessoryType = .detailButton, the method tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) doesn't get called.

When using a subclass of UITableViewCell, it all works fine, so pretty sure it's a bug.

Do you need a sample project or is it fine like this?

Thanks for the great library!

@jerkoch jerkoch added the bug label Mar 13, 2017
@jerkoch
Copy link
Contributor

jerkoch commented Mar 13, 2017

Hey @Jonge - Nice catch! Standby for a fix.

@jerkoch
Copy link
Contributor

jerkoch commented Mar 13, 2017

Apparently UITableViewCell implemented some important behavior in didMoveToSuperview(). 😜

@Jonge
Copy link
Author

Jonge commented Mar 13, 2017

Amazing, thanks for the quick fix! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants