I have a uiswitch in settings that allows users to view some sensitive things in the app. Before allowing users to change the switch through a tap I want to prompt them to provide a password.
I tried disabling the switch but it's impossible (without some kludgy workarounds) to detect a tap/touch from a disabled switch.
Is there an event or way to detect the touch/tap before the uiswitch changes value so that I can prevent it from changing value and show the prompt?
I tried using touchdown and touch inside but they don't stop the change in value.
Thanks for any suggestions.