Note: When I write "alert view", I'm referring to a UIAlertController UIAlertControllerStyleAlert
When my app is foregrounded after a minimum amount of time, a customPinUnlockViewController
appears. This behavior occurs in iOS 8 and iOS 9 (and possibly other versions, but I haven't tested others)
If the user has enabled TouchID, then an alert view appears over the PinUnlockVC
, prompting the user to use TouchID to unlock the app instead of entering the pin.
When I press the home button, the alert view is dismissed. The app is NOT backgrounded- only the alert view is dismissed. This is NOT desired behavior, but it appears that it is the default OS behavior.
Anywhere else in the app, when I press the home button, the app is backgrounded. This is desired behavior.
How do I override, what appears to be the default OS functionality in this case, the home button press in order to background the app if an alert view is visible?
I'm not sure if this occurs when any alert view is visible, or if it specific to a TouchID prompt alert view (though I don't see why it would be specific to this case).
Thanks in advance.