账户和密码是用keychain保存,假设需求 是三十天未登录 让其重新输入账户名和密码 不是直接登录
闭关修行中......
Use NSUserDefault to save a timestampThen every time you open the APP, just judge the time difference between the current timestamp and the saved timestamp
nsdate gets the current date, and then subtracts it from the cached nsdate of the current day
Use NSUserDefault to save a timestamp
Then every time you open the APP, just judge the time difference between the current timestamp and the saved timestamp
nsdate gets the current date, and then subtracts it from the cached nsdate of the current day