I am creating a sign in view. I have two UITextField
's which are for the user's email and password. When user clicks the 'Sign In' button, these two parameters are sent to my API and check to see if the user exists. If this user exists, my API gets the user's email, name, status and token, and return the JSON result to me. The token had expire date. Hence, I need to store the token and email in the device so the user doesn't have to repeatedly sign in.
I am newbie.So,any code help is appreciated. Thank you.
Update
I have imported LockSmith.swift and LockSmithRequest.swift into my project.And I had also added KeyChainService.swift same as matt blog to project.But I am occurring these problem and my xcode is 6.2.