Lock app for authentication with TouchID

Hey everyone,


I have a problem which I can't solve.


My app consists of a tab bar controller and in one tab bar I have an Table View Controller, in which can get to other View Controllers.

Everything working fine so far.


Now I want to give the user the ability to lock the app with TouchID, so not everyone can open the app.

TouchID authentication is also working well.


I have an extra View Controller, which I have set as the initial View Controller, in which the authentication should happen.

If the authentication was successful, I am performing a segue to the Tab Bar Controller.

This also works fine.


But if the user then clicks on the tab bar item for presenting the Table View Controller, and the on a row to get to another View Controller, I am facing the problem that the View Controller for authentication shows up and not the expected View Controller.


And I can't explain myself why this error occurs, maybe someone has an answer for me or a better solution for protecting the app through TouchID/Password. 🙂


My problem is a little bit hard to explain, I hope my explanation is understandable. 🙂

Answered by Claude31 in 285553022

Without seeing anycode, it is a bit difficult to tell what happens.


Maybe you could look carefully at this and see if it helps to find the correct implementation.


h ttps://www.raywenderlich.com/147308/secure-ios-user-data-keychain-touch-id

Accepted Answer

Without seeing anycode, it is a bit difficult to tell what happens.


Maybe you could look carefully at this and see if it helps to find the correct implementation.


h ttps://www.raywenderlich.com/147308/secure-ios-user-data-keychain-touch-id

Lock app for authentication with TouchID
 
 
Q