You're probably asking yourselves what I mean by "conditionally tappable":
I have an UITableView with some generated cells in it. The cells have some images and labels on them. Wherever I tap on the cell area (on the cell itself, or on the image or the label), it takes me to a CellDetailViewController - ref. image.
Now, in the navigation bar I want to have a "Filter" button, that when tapped (or rather triggered - tap to on, tap to off), makes the UI elements on those cells perform an element-specific action when tapped, instead of segueing to the ViewController as they would normally do. I plan on making an action that takes the element and filters the table to show just the cells containing a particular piece of data, according to what the element shown - that means I need to know exactly what element was tapped in what cell (best case is it gets passed as a sender in an argument so I can access its properties).
What I initially though of was I can make the UI elements always call the action, that will check if the Filter button was tapped and then either segue to the ViewController (if it was not), or perform the Filter action (if it was). The problem with this approach is that it seems really clunky and slow-ish and I don't really want to reinvent the wheel if there exists a better solution.
So, the question is - is there another way to accomplish this? Make UI elements clickable on demand?
E: Added more info about the question.