iOS Swift - How to assign a default action to all buttons programmatically

Viewed 1653

I'm working with an app in prototype stage of development. Some interface elements do not have any action assigned to them either through storyboard or programmatically.

According to UX guidelines, I want to find these "inactive" buttons in app and have them display a "feature not available" alert when tapped during testing. Can this be done through an extension of UIButton?

How can I assign a default action to UIButton to show an alert unless another action is assigned via interface builder or programmatically?

4 Answers
Related