mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 17:12:23 +01:00
Remove interactions and gesture recognizers from recycled section headers. Issue #1432
This commit is contained in:
parent
e90c6d1395
commit
b95a692876
@ -211,10 +211,12 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
headerView.isLastSection = false
|
||||
}
|
||||
|
||||
headerView.gestureRecognizers?.removeAll()
|
||||
let tap = UITapGestureRecognizer(target: self, action:#selector(self.toggleSectionHeader(_:)))
|
||||
headerView.addGestureRecognizer(tap)
|
||||
|
||||
if section != 0 {
|
||||
headerView.interactions.removeAll()
|
||||
headerView.addInteraction(UIContextMenuInteraction(delegate: self))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user