TimOliver / TOPasscodeViewController

A modal passcode input and validation view controller for iOS
MIT License
385 stars 96 forks source link

Add "allowCancel" to TOPasscodeViewController #30

Closed faec closed 5 years ago

faec commented 6 years ago

Adds a new "allowCancel" property on TOPasscodeViewController that turns off the default cancel button when set to NO, for use when the user can't proceed in the app at all without entering a passcode.

faec commented 6 years ago

This is related to #3 but is a better solution for me because removing / replacing the cancel button outright makes it impossible for the user to backspace (since they're the same button). This code still shows the "Delete" case even when allowCancel is set to NO, it just prevents the display / trigger of the "Cancel" case.

TimOliver commented 5 years ago

Sorry for the delay! Thanks for the PR!