objective-c - iOS 中时如何判断保存的密码是否过期
阿神
阿神 2017-04-17 17:36:18
0
2
471

账户和密码是用keychain保存,假设需求 是三十天未登录 让其重新输入账户名和密码 不是直接登录

阿神
阿神

闭关修行中......

reply all(2)
Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template